add grub config

Former-commit-id: 2183824c34
This commit is contained in:
Hadi
2025-03-13 17:02:58 +01:00
parent f9c5e63136
commit 8a7a76297a

32
nixos/grub.nix Normal file
View File

@@ -0,0 +1,32 @@
{ pkgs, ... }: {
boot = {
bootspec.enable = true;
loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
devices = [ "nodev" ];
efiSupport = true;
useOSProber = true;
gfxmodeEfi = "1280x720";
};
};
tmp.cleanOnBoot = true;
kernelPackages =
pkgs.linuxPackages_latest; # _zen, _hardened, _rt, _rt_latest, etc.
# Silent boot
kernelParams = [
"quiet"
"splash"
"vga=current"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
];
consoleLogLevel = 0;
initrd.verbose = false;
};
}