nixos-config/hosts/ni/hardware-configuration.nix

35 lines
812 B
Nix
Raw Normal View History

{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "nvme" "usb_storage" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
2021-12-26 10:43:49 +00:00
label = "root";
options = [
"defaults"
"noatime"
];
fsType = "ext4";
};
fileSystems."/boot" = {
2021-12-26 10:43:49 +00:00
label = "boot";
fsType = "vfat";
};
swapDevices = [{ label = "swap"; }];
networking.useDHCP = false;
networking.interfaces.enp1s0.useDHCP = true;
networking.interfaces.wlp2s0.useDHCP = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2022-07-05 14:05:59 +00:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
}