configuration.nix/hosts/skipper/hardware/kernel.nix
2024-06-25 00:40:19 +05:30

26 lines
578 B
Nix

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