mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 09:05:35 +01:00
Nix: fix extension of splashImage
This commit is contained in:
parent
eda1b86dd8
commit
a634923206
@ -139,13 +139,10 @@
|
||||
grub2-theme
|
||||
];
|
||||
boot.loader.grub =
|
||||
let
|
||||
ext = if cfg.splashImage == null then "jpg" else last (splitString "." cfg.splashImage);
|
||||
in
|
||||
{
|
||||
theme = "${grub2-theme}/grub/themes/${cfg.theme}";
|
||||
splashImage =
|
||||
"${grub2-theme}/grub/themes/${cfg.theme}/background.${ext}";
|
||||
"${grub2-theme}/grub/themes/${cfg.theme}/background.jpg";
|
||||
gfxmodeEfi = "${resolution},auto";
|
||||
gfxmodeBios = "${resolution},auto";
|
||||
extraConfig = ''
|
||||
|
Loading…
Reference in New Issue
Block a user