refactor(nixosmodules): move boot config to module

This commit is contained in:
Mohammad Rafiq 2025-04-27 00:20:25 +08:00
parent 2d29c8ffef
commit 5bef7c46a6
No known key found for this signature in database
9 changed files with 61 additions and 57 deletions

View file

@ -1,30 +0,0 @@
{
pkgs,
modulesPath,
lib,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
loader = {
timeout = 5;
efi.canTouchEfiVariables = true;
};
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
initrd.availableKernelModules = [
"ahci"
"nvme"
"sd_mod"
"usb_storage"
"usbhid"
"xhci_pci"
"rtsx_pci_sdmmc"
];
};
services.dbus = {
enable = true;
};
}

View file

@ -1,6 +0,0 @@
{
boot.loader = {
systemd-boot.enable = true;
systemd-boot.configurationLimit = 5;
};
}