Skip to content

Commit

Permalink
bootspec: embed the document into a bootspec subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Aug 4, 2022
1 parent 7d8fa61 commit 2d9c0e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos/modules/system/activation/bootspec.nix
Expand Up @@ -28,6 +28,8 @@ let
children);
in
''
mkdir -p $out/bootspec
${pkgs.jq}/bin/jq '
.toplevel = $toplevel |
.init = $init
Expand All @@ -40,7 +42,7 @@ let
--sort-keys \
'.specialisation = ($ARGS.named | map_values(. | first))' \
${lib.concatStringsSep " " specialisationLoader} \
> $out/${filename}
> $out/bootspec/${filename}
'';
};
};
Expand Down

0 comments on commit 2d9c0e7

Please sign in to comment.