configuration.nix/system/hardware/kernel.nix
2023-04-07 19:51:52 +05:30

26 lines
583 B
Nix

{ lib, pkgs, ... }: {
boot = {
consoleLogLevel = 3;
initrd = {
availableKernelModules = [
"xhci_pci"
"thunderbolt"
"vmd"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
kernelModules = [ "i915" ];
systemd.enable = true;
};
kernelModules = [ "kvm-intel" ];
kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
kernelParams = [ "quiet" ];
kernel.sysctl = {
"vm.swappiness" = 0;
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}