mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
31 lines
739 B
Nix
31 lines
739 B
Nix
_: {
|
|
boot.loader = {
|
|
timeout = null;
|
|
grub = {
|
|
enable = true;
|
|
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
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|