profile/core: migrate to nixosModule

This commit is contained in:
Felix Buehler 2026-01-24 22:40:40 +01:00
parent a4d422e059
commit a16d497ebb
10 changed files with 208 additions and 157 deletions

View file

@ -0,0 +1,21 @@
{ config, lib, ... }:
let
cfg = config.my.profiles.core.kernel-modules;
in
{
options.my.profiles.core.kernel-modules.enable = lib.mkEnableOption "kernel module profile";
config = lib.mkIf cfg.enable {
boot.initrd.availableKernelModules = [
"ahci"
"e1000e"
"ehci_pci"
"nvme"
"sd_mod"
"uas"
"usbhid"
"usb_storage"
"xhci_pci"
];
};
}