Fix evaluation error in the ISOs
This commit is contained in:
parent
1d6b939676
commit
c4149c7b56
@ -219,17 +219,20 @@ in
|
|||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkMerge [
|
||||||
|
|
||||||
boot.loader.grub.devices = optional (cfg.device != "") cfg.device;
|
{ boot.loader.grub.splashImage = mkDefault (
|
||||||
|
|
||||||
boot.loader.grub.splashImage = mkDefault (
|
|
||||||
if cfg.version == 1 then pkgs.fetchurl {
|
if cfg.version == 1 then pkgs.fetchurl {
|
||||||
url = http://www.gnome-look.org/CONTENT/content-files/36909-soft-tux.xpm.gz;
|
url = http://www.gnome-look.org/CONTENT/content-files/36909-soft-tux.xpm.gz;
|
||||||
sha256 = "14kqdx2lfqvh40h6fjjzqgff1mwk74dmbjvmqphi6azzra7z8d59";
|
sha256 = "14kqdx2lfqvh40h6fjjzqgff1mwk74dmbjvmqphi6azzra7z8d59";
|
||||||
}
|
}
|
||||||
# GRUB 1.97 doesn't support gzipped XPMs.
|
# GRUB 1.97 doesn't support gzipped XPMs.
|
||||||
else ./winkler-gnu-blue-640x480.png);
|
else ./winkler-gnu-blue-640x480.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
(mkIf cfg.enable {
|
||||||
|
|
||||||
|
boot.loader.grub.devices = optional (cfg.device != "") cfg.device;
|
||||||
|
|
||||||
system.build.installBootLoader =
|
system.build.installBootLoader =
|
||||||
if cfg.devices == [] then
|
if cfg.devices == [] then
|
||||||
@ -251,6 +254,8 @@ in
|
|||||||
${pkgs.coreutils}/bin/cp -pf "${v}" "/boot/${n}"
|
${pkgs.coreutils}/bin/cp -pf "${v}" "/boot/${n}"
|
||||||
'') config.boot.loader.grub.extraFiles);
|
'') config.boot.loader.grub.extraFiles);
|
||||||
|
|
||||||
};
|
})
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user