parent
be4c4d79cf
commit
1b743526bd
@ -8,9 +8,11 @@ let
|
|||||||
|
|
||||||
grub = if cfg.version == 1 then pkgs.grub else pkgs.grub2;
|
grub = if cfg.version == 1 then pkgs.grub else pkgs.grub2;
|
||||||
|
|
||||||
|
f = x: if x == null then "" else "" + x;
|
||||||
|
|
||||||
grubConfig = pkgs.writeText "grub-config.xml" (builtins.toXML
|
grubConfig = pkgs.writeText "grub-config.xml" (builtins.toXML
|
||||||
{ splashImage = "" + config.boot.loader.grub.splashImage;
|
{ splashImage = f config.boot.loader.grub.splashImage;
|
||||||
grub = "" + grub;
|
grub = f grub;
|
||||||
inherit (config.boot.loader.grub)
|
inherit (config.boot.loader.grub)
|
||||||
version extraConfig extraPerEntryConfig extraEntries
|
version extraConfig extraPerEntryConfig extraEntries
|
||||||
extraEntriesBeforeNixOS configurationLimit copyKernels timeout
|
extraEntriesBeforeNixOS configurationLimit copyKernels timeout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user