nixos-servers/hardware-configuration.nix

17 lines
558 B
Nix
Raw Normal View History

2023-11-15 20:25:35 +00:00
{ config, lib, modulesPath, machine, ... }: {
2023-11-11 23:04:37 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
[ "ahci" "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
networking.useDHCP = false;
2023-11-15 20:25:35 +00:00
networking.hostName = machine.name;
2023-11-11 23:04:37 +00:00
nixpkgs.hostPlatform = "x86_64-linux";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}