nixos/systemd-boot: allow for bootspec-less generations

Generation built with old versions of NixOS with no bootspec
support may still be present on the system and must be
accounted for.
This commit is contained in:
Julien Malka
2023-11-16 23:48:19 +00:00
parent 4fae7293f4
commit 81e378618e
4 changed files with 44 additions and 3 deletions

View File

@@ -16,6 +16,8 @@ let
systemd = config.systemd.package;
bootspecTools = pkgs.bootspec;
nix = config.nix.package.out;
timeout = optionalString (config.boot.loader.timeout != null) config.boot.loader.timeout;