From 8a7a76297ac2417b580aa3e47a5545e4a8ab518f Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 13 Mar 2025 17:02:58 +0100 Subject: [PATCH] add grub config Former-commit-id: 2183824c346b964b82771b21dd777b478d7e3ac0 --- nixos/grub.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 nixos/grub.nix diff --git a/nixos/grub.nix b/nixos/grub.nix new file mode 100644 index 0000000..4dbaaf9 --- /dev/null +++ b/nixos/grub.nix @@ -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; + }; +}