mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2026-01-29 09:13:01 +01:00
22 lines
402 B
Nix
22 lines
402 B
Nix
|
|
{ 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"
|
||
|
|
];
|
||
|
|
};
|
||
|
|
}
|