nixos/activation/bootspec: drop problematic comment, only generate bootspec when bootspec is enabled

This commit is contained in:
Cole Helbling 2022-12-02 11:43:07 -08:00
parent 97f657c742
commit 38e5089814
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ let
--arg init "$out/init" \
< ${json} \
| ${pkgs.jq}/bin/jq \
--sort-keys \ # Slurp all specialisations and inject them as values in .specialisations.{name} = {specialisation bootspec}.
--sort-keys \
'.v1.specialisation = ($ARGS.named | map_values(. | first | .v1))' \
${lib.concatStringsSep " " specialisationLoader} \
> $out/bootspec/${filename}

View file

@ -79,7 +79,7 @@ let
echo -n "${toString config.system.extraDependencies}" > $out/extra-dependencies
${optionalString (!config.boot.isContainer) ''
${optionalString (!config.boot.isContainer && config.boot.bootspec.enable) ''
${config.boot.bootspec.writer}
${config.boot.bootspec.validator} "$out/bootspec/${config.boot.bootspec.filename}"
''}