nixos-config/system/all/grub.nix

22 lines
585 B
Nix
Raw Normal View History

2019-12-20 05:54:26 +01: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";
};
2019-12-20 05:54:26 +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
'';
}