mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
32 lines
814 B
Nix
32 lines
814 B
Nix
{config, lib, ... }: let
|
|
inherit (lib.modules) mkIf;
|
|
in {
|
|
boot.loader = mkIf (config.boot.loader.grub.enable) {
|
|
timeout = null;
|
|
grub = {
|
|
useOSProber = true;
|
|
splashImage = ./splash.jpg;
|
|
extraConfig = ''
|
|
set color_normal=black/black
|
|
set menu_color_normal=black/black
|
|
set menu_color_highlight=magenta/cyan
|
|
'';
|
|
memtest86.enable = true;
|
|
extraEntries = ''
|
|
if [ ''${grub_platform} == "efi" ]; then
|
|
menuentry 'UEFI Firmware Settings' --id 'uefi-firmware' {
|
|
fwsetup
|
|
}
|
|
fi
|
|
menuentry "System restart" {
|
|
echo "System rebooting..."
|
|
reboot
|
|
}
|
|
menuentry "System shutdown" {
|
|
echo "System shutting down..."
|
|
halt
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|