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

This commit is contained in:
Graham Christensen
2022-12-08 13:50:04 -08:00
committed by Cole Helbling
parent 6c0e4e892f
commit e9c85d6d0f
+3 -1
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}
'';
};
};