nixos-config/system/all/grub.nix

28 lines
593 B
Nix
Raw Normal View History

2024-08-29 03:26:04 +02:00
{
pkgs,
lib,
config,
...
}:
2019-10-24 02:20:38 +02:00
let
falloutGrubTheme = pkgs.fetchgit {
url = "https://github.com/shvchk/fallout-grub-theme.git";
rev = "fe27cbc99e994d50bb4269a9388e3f7d60492ffa";
sha256 = "1z8zc4k2mh8d56ipql8vfljvdjczrrna5ckgzjsdyrndfkwv8ghw";
};
2021-11-01 09:20:42 +01:00
in
{
2019-10-24 02:20:38 +02:00
boot.loader.grub.extraConfig = ''
set theme=($drive1)//themes/fallout-grub-theme/theme.txt
'';
boot.loader.grub.splashImage = "${falloutGrubTheme}/background.png";
system.activationScripts.copyGrubTheme = ''
mkdir -p /boot/themes
cp -R ${falloutGrubTheme}/ /boot/themes/fallout-grub-theme
'';
}