move kernel options

This commit is contained in:
Adithya 2023-04-07 19:51:52 +05:30
parent 1983a9e97b
commit c7fb0d7546
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 4 additions and 7 deletions

View file

@ -9,13 +9,6 @@
./virtualisation.nix ./virtualisation.nix
]; ];
boot = {
initrd.systemd.enable = true;
kernel.sysctl = {
"vm.swappiness" = 0;
};
};
console.useXkbConfig = true; console.useXkbConfig = true;
environment.sessionVariables = { environment.sessionVariables = {

View file

@ -12,10 +12,14 @@
"rtsx_pci_sdmmc" "rtsx_pci_sdmmc"
]; ];
kernelModules = [ "i915" ]; kernelModules = [ "i915" ];
systemd.enable = true;
}; };
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" ];
kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest; kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
kernelParams = [ "quiet" ]; kernelParams = [ "quiet" ];
kernel.sysctl = {
"vm.swappiness" = 0;
};
}; };
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";