refactor: collapsed configuration blocks with shared prefixes into nested format
All checks were successful
ci / nix-fmt (push) Successful in 2m33s

This commit is contained in:
Ceferino Patino 2026-05-02 12:35:15 -05:00
commit 10790f87a4
Signed by: c4patino
SSH key fingerprint: SHA256:Wu+cU1t+7zVT9wzew/4meNmeulo66NzMqc22MdDBgXI
5 changed files with 97 additions and 42 deletions

View file

@ -10,12 +10,18 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.kernelParams = ["cgroup_enable=memory" "swapaccount=1"];
boot.extraModulePackages = [];
boot.initrd.systemd.tpm2.enable = false;
boot = {
kernelModules = [];
kernelParams = ["cgroup_enable=memory" "swapaccount=1"];
extraModulePackages = [];
initrd = {
availableKernelModules = ["xhci_pci"];
kernelModules = [];
systemd.tpm2.enable = false;
};
};
swapDevices = [];

View file

@ -12,15 +12,25 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid"];
boot.initrd.kernelModules = [];
boot.kernelModules = [
"kvm-amd"
"v4l2loopback"
];
boot.extraModulePackages = with pkgs.linuxPackages; [
v4l2loopback
];
boot = {
kernelModules = [
"kvm-amd"
"v4l2loopback"
];
extraModulePackages = with pkgs.linuxPackages; [
v4l2loopback
];
initrd = {
availableKernelModules = [
"ahci"
"nvme"
"usbhid"
"xhci_pci"
];
kernelModules = [];
};
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -13,25 +13,38 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelModules = [
"imx471"
"kvm-intel"
"v4l2loopback"
];
boot.extraModulePackages = with pkgs.linuxPackages_latest; [
imx471
v4l2loopback
];
boot.extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=0 card_label="IMX471 Virtual Camera" exclusive_caps=1
'';
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelModules = [
"imx471"
"kvm-intel"
"v4l2loopback"
];
extraModulePackages = with pkgs.linuxPackages_latest; [
imx471
v4l2loopback
];
extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=0 card_label="IMX471 Virtual Camera" exclusive_caps=1
'';
initrd = {
availableKernelModules = [
"nvme"
"sd_mod"
"thunderbolt"
"usb_storage"
"xhci_pci"
];
kernelModules = [];
};
};
services.logind.settings.Login.HandleLidSwitchExternalPower = "ignore";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.npu.enable = true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.intel = {
npu.enable = true;
updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}

View file

@ -11,11 +11,24 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
boot.initrd.systemd.tpm2.enable = false;
boot = {
kernelModules = ["kvm-intel"];
extraModulePackages = [];
initrd = {
availableKernelModules = [
"ahci"
"sd_mod"
"sdhci_pci"
"usb_storage"
"usbhid"
"xhci_pci"
];
kernelModules = [];
systemd.tpm2.enable = false;
};
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -11,11 +11,24 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
boot.initrd.systemd.tpm2.enable = false;
boot = {
kernelModules = ["kvm-intel"];
extraModulePackages = [];
initrd = {
availableKernelModules = [
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
"sdhci_pci"
];
kernelModules = [];
systemd.tpm2.enable = false;
};
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's