mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/grub: Uses the new artwork as the default option.
This also includes a set of defaults *for this option*, where when not used, other saner defaults are used.
This commit is contained in:
parent
e8406f937e
commit
01259ef98f
1 changed files with 8 additions and 1 deletions
|
@ -82,6 +82,8 @@ let
|
||||||
"--output" "$out"
|
"--output" "$out"
|
||||||
] ++ (optional (cfg.fontSize!=null) "--size ${toString cfg.fontSize}")))
|
] ++ (optional (cfg.fontSize!=null) "--size ${toString cfg.fontSize}")))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
defaultSplash = "${pkgs.nixos-artwork.wallpapers.simple-dark-gray-bootloader}/share/artwork/gnome/nix-wallpaper-simple-dark-gray_bootloader.png";
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -558,9 +560,14 @@ in
|
||||||
sha256 = "14kqdx2lfqvh40h6fjjzqgff1mwk74dmbjvmqphi6azzra7z8d59";
|
sha256 = "14kqdx2lfqvh40h6fjjzqgff1mwk74dmbjvmqphi6azzra7z8d59";
|
||||||
}
|
}
|
||||||
# GRUB 1.97 doesn't support gzipped XPMs.
|
# GRUB 1.97 doesn't support gzipped XPMs.
|
||||||
else "${pkgs.nixos-artwork.wallpapers.gnome-dark}/share/artwork/gnome/Gnome_Dark.png");
|
else defaultSplash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(mkIf (cfg.splashImage == defaultSplash) {
|
||||||
|
boot.loader.grub.backgroundColor = mkDefault "#2F302F";
|
||||||
|
boot.loader.grub.splashMode = mkDefault "normal";
|
||||||
|
})
|
||||||
|
|
||||||
(mkIf cfg.enable {
|
(mkIf cfg.enable {
|
||||||
|
|
||||||
boot.loader.grub.devices = optional (cfg.device != "") cfg.device;
|
boot.loader.grub.devices = optional (cfg.device != "") cfg.device;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue