feat(nixos): add bootloader configuration module
This commit is contained in:
parent
09ab1ac5a6
commit
b4dc19d65c
1 changed files with 18 additions and 0 deletions
18
nix/modules/machine/bootloader.nix
Normal file
18
nix/modules/machine/bootloader.nix
Normal file
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue