From b4dc19d65c9ea525e5ae82fff9d04507f1b7dbaf Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 7 Jul 2025 18:32:34 +0800 Subject: [PATCH] feat(nixos): add bootloader configuration module --- nix/modules/machine/bootloader.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nix/modules/machine/bootloader.nix diff --git a/nix/modules/machine/bootloader.nix b/nix/modules/machine/bootloader.nix new file mode 100644 index 0000000..2fefe52 --- /dev/null +++ b/nix/modules/machine/bootloader.nix @@ -0,0 +1,18 @@ +{ + flake.modules.nixos.default.boot = { + initrd.availableKernelModules = [ + "nvme" + "xhci_pci" + "ahci" + "usbhid" + "usb_storage" + "sd_mod" + ]; + loader.efi.canTouchEfiVariables = true; + #TODO: disable for mbp? + loader.systemd-boot = { + enable = true; + configurationLimit = 5; + }; + }; +}