diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-23 20:06:39 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-23 20:08:23 +0200 |
commit | a3777ba4f959ae7fa10561b953c6e10add125fa8 (patch) | |
tree | a0d4298f294032e5d8f14e172f7c75be3040c0a2 /nixos/modules/system | |
parent | 8166b12f0c861f442014433f2e3077522da7dd55 (diff) | |
download | nixpkgs-a3777ba4f959ae7fa10561b953c6e10add125fa8.tar nixpkgs-a3777ba4f959ae7fa10561b953c6e10add125fa8.tar.gz nixpkgs-a3777ba4f959ae7fa10561b953c6e10add125fa8.tar.bz2 nixpkgs-a3777ba4f959ae7fa10561b953c6e10add125fa8.tar.lz nixpkgs-a3777ba4f959ae7fa10561b953c6e10add125fa8.tar.xz nixpkgs-a3777ba4f959ae7fa10561b953c6e10add125fa8.tar.zst nixpkgs-a3777ba4f959ae7fa10561b953c6e10add125fa8.zip |
Remove dependencies on the Nixpkgs location
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/loader/grub/grub.nix | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix index 48d16b1c520..97ea6100d71 100644 --- a/nixos/modules/system/boot/loader/grub/grub.nix +++ b/nixos/modules/system/boot/loader/grub/grub.nix @@ -167,15 +167,7 @@ in }; splashImage = mkOption { - default = - if cfg.version == 1 - then pkgs.fetchurl { - url = http://www.gnome-look.org/CONTENT/content-files/36909-soft-tux.xpm.gz; - sha256 = "14kqdx2lfqvh40h6fjjzqgff1mwk74dmbjvmqphi6azzra7z8d59"; - } - # GRUB 1.97 doesn't support gzipped XPMs. - else ./winkler-gnu-blue-640x480.png; - example = null; + example = literalExample "./my-background.png"; description = '' Background image used for GRUB. It must be a 640x480, 14-colour image in XPM format, optionally compressed with @@ -231,6 +223,14 @@ in boot.loader.grub.devices = optional (cfg.device != "") cfg.device; + boot.loader.grub.splashImage = mkDefault ( + if cfg.version == 1 then pkgs.fetchurl { + url = http://www.gnome-look.org/CONTENT/content-files/36909-soft-tux.xpm.gz; + sha256 = "14kqdx2lfqvh40h6fjjzqgff1mwk74dmbjvmqphi6azzra7z8d59"; + } + # GRUB 1.97 doesn't support gzipped XPMs. + else ./winkler-gnu-blue-640x480.png); + system.build.installBootLoader = if cfg.devices == [] then throw "You must set the ‘boot.loader.grub.device’ option to make the system bootable." |