configuration.nix/hosts/layne/hardware/default.nix
2024-07-03 20:03:29 +05:30

29 lines
766 B
Nix

{ 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" ];
kernelModules = [ ];
systemd.enable = true;
};
kernelModules = [ "kvm-intel" ];
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
kernelParams = [ "quiet" "nomodeset" ];
kernel.sysctl = {
"vm.swappiness" = 10;
"vm.dirty_ratio" = 3;
};
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}