nixos-servers/hardware-configuration.nix

29 lines
843 B
Nix
Raw Normal View History

2023-11-11 23:04:37 +00:00
{ config, lib, modulesPath, ... }: {
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 = [ ];
2023-11-13 21:44:43 +00:00
# fileSystems."/" = {
# device = "/dev/disk/by-uuid/b78f591c-c9b6-4dae-9837-56716d38990b";
# fsType = "ext4";
# };
2023-11-11 23:04:37 +00:00
2023-11-13 21:44:43 +00:00
# fileSystems."/boot" = {
# device = "/dev/disk/by-uuid/6936-84C2";
# fsType = "vfat";
# };
2023-11-11 23:04:37 +00:00
2023-11-13 21:44:43 +00:00
# swapDevices =
# [{ device = "/dev/disk/by-uuid/79fbd322-e58d-4e45-8969-06ef494cefea"; }];
2023-11-11 23:04:37 +00:00
networking.useDHCP = false;
nixpkgs.hostPlatform = "x86_64-linux";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}