fix: move bootloader to grub

This commit is contained in:
Barrett Ruth 2026-02-15 01:59:33 -05:00
parent 9a2feb3a15
commit d96b0b3bb7
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -11,6 +11,25 @@ let
loginShell = pkgs.writeShellScript "login-shell" ''
exec $(getent passwd $(id -un) | cut -d: -f7) -l
'';
grubTheme = pkgs.runCommand "grub-theme" {
nativeBuildInputs = [ pkgs.grub2 ];
} ''
mkdir -p $out
grub-mkfont -s 32 -o $out/font.pf2 ${../../fonts/berkeley-mono/BerkeleyMono-Regular.ttf}
cat > $out/theme.txt << 'EOF'
desktop-color: "#000000"
+ boot_menu {
left = 30%
top = 30%
width = 40%
height = 40%
item_color = "#999999"
selected_item_color = "#ffffff"
icon_width = 0
}
EOF
'';
in
{
imports = [
@ -18,9 +37,15 @@ in
./hardware.nix
];
boot.loader.systemd-boot = {
boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev";
useOSProber = true;
configurationLimit = 2;
theme = grubTheme;
font = ../../fonts/berkeley-mono/BerkeleyMono-Regular.ttf;
fontSize = 24;
};
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelParams = [