configuration.nix/hosts/wynne/hardware/default.nix

30 lines
766 B
Nix
Raw Normal View History

2024-07-03 17:03:51 +05:30
{ lib, pkgs, ... }: {
imports = [ ./filesystem.nix ];
hardware = {
cpu.intel.updateMicrocode = lib.mkDefault true;
enableRedistributableFirmware = true;
};
boot = {
consoleLogLevel = 3;
initrd = {
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" ];
2024-07-03 18:36:19 +05:30
kernelModules = [ ];
2024-07-03 17:03:51 +05:30
systemd.enable = true;
};
kernelModules = [ "kvm-intel" ];
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
2024-07-03 18:36:19 +05:30
kernelParams = [ "quiet" "nomodeset" ];
2024-07-03 17:03:51 +05:30
kernel.sysctl = {
"vm.swappiness" = 10;
"vm.dirty_ratio" = 3;
};
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}