configuration.nix/system/hardware/kernel.nix

27 lines
583 B
Nix
Raw Normal View History

2023-04-07 19:51:16 +05:30
{ lib, pkgs, ... }: {
2023-03-15 22:11:59 +05:30
boot = {
2023-04-07 19:51:16 +05:30
consoleLogLevel = 3;
2023-03-15 22:11:59 +05:30
initrd = {
availableKernelModules = [
"xhci_pci"
"thunderbolt"
"vmd"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
2023-03-29 21:48:55 +05:30
kernelModules = [ "i915" ];
2023-04-07 19:51:52 +05:30
systemd.enable = true;
2023-03-15 22:11:59 +05:30
};
2023-03-29 21:48:55 +05:30
kernelModules = [ "kvm-intel" ];
2023-03-30 22:28:59 +05:30
kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
2023-04-07 19:51:16 +05:30
kernelParams = [ "quiet" ];
2023-04-07 19:51:52 +05:30
kernel.sysctl = {
"vm.swappiness" = 0;
};
2023-03-15 22:11:59 +05:30
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}