nixos/activation/bootspec: embed the document into a bootspec subdir

This commit is contained in:
Graham Christensen 2022-05-18 15:46:29 -04:00 committed by Cole Helbling
parent 6c0e4e892f
commit e9c85d6d0f

View file

@ -28,6 +28,8 @@ let
children);
in
''
mkdir -p $out/bootspec
${pkgs.jq}/bin/jq '
.toplevel = $toplevel |
.init = $init
@ -40,7 +42,7 @@ let
--sort-keys \
'.specialisation = ($ARGS.named | map_values(. | first))' \
${lib.concatStringsSep " " specialisationLoader} \
> $out/${filename}
> $out/bootspec/${filename}
'';
};
};