move kernel options
This commit is contained in:
parent
1983a9e97b
commit
c7fb0d7546
2 changed files with 4 additions and 7 deletions
|
@ -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 = {
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue