nix-conf/systems/ebisu/hardware-configuration.nix

36 lines
752 B
Nix
Raw Normal View History

2024-07-10 23:02:54 +02:00
{
config,
lib,
modulesPath,
...
}:
2023-09-08 14:36:39 +02:00
{
2023-12-30 23:39:33 +01:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2023-09-08 14:36:39 +02:00
2023-12-30 23:39:33 +01:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usb_storage"
"sd_mod"
"sr_mod"
"sdhci_pci"
"rtsx_pci_sdmmc"
];
2023-09-08 14:36:39 +02:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2023-12-30 23:39:33 +01:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/1cae8f88-5db6-4c97-88e4-350c35275d5c";
fsType = "ext4";
};
2023-09-08 14:36:39 +02:00
2024-07-10 23:02:54 +02:00
swapDevices = [ { device = "/dev/disk/by-uuid/8569ee66-b939-4ce8-a94a-dca7df5e301b"; } ];
2023-09-08 14:36:39 +02:00
networking.useDHCP = lib.mkDefault true;
2024-07-10 23:02:54 +02:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2023-09-08 14:36:39 +02:00
}