mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/activation/bootspec: embed the document into a bootspec subdir
This commit is contained in:
parent
6c0e4e892f
commit
e9c85d6d0f
1 changed files with 3 additions and 1 deletions
|
@ -28,6 +28,8 @@ let
|
||||||
children);
|
children);
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
|
mkdir -p $out/bootspec
|
||||||
|
|
||||||
${pkgs.jq}/bin/jq '
|
${pkgs.jq}/bin/jq '
|
||||||
.toplevel = $toplevel |
|
.toplevel = $toplevel |
|
||||||
.init = $init
|
.init = $init
|
||||||
|
@ -40,7 +42,7 @@ let
|
||||||
--sort-keys \
|
--sort-keys \
|
||||||
'.specialisation = ($ARGS.named | map_values(. | first))' \
|
'.specialisation = ($ARGS.named | map_values(. | first))' \
|
||||||
${lib.concatStringsSep " " specialisationLoader} \
|
${lib.concatStringsSep " " specialisationLoader} \
|
||||||
> $out/${filename}
|
> $out/bootspec/${filename}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue