put swappiness and governor in base
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 19s
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 19s
This commit is contained in:
parent
c9f4ad0e13
commit
d4b19a279e
2 changed files with 3 additions and 3 deletions
|
|
@ -16,6 +16,9 @@
|
||||||
i18n.defaultLocale = locale;
|
i18n.defaultLocale = locale;
|
||||||
environment.localBinInPath = true;
|
environment.localBinInPath = true;
|
||||||
|
|
||||||
|
powerManagement.cpuFreqGovernor = "powersave";
|
||||||
|
boot.kernel.sysctl."vm.swappiness" = 10; # only swap when necessary
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
polkit = {
|
polkit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,6 @@
|
||||||
inputs.mc.nixosModules.minecraft-servers
|
inputs.mc.nixosModules.minecraft-servers
|
||||||
];
|
];
|
||||||
nixpkgs.overlays = [ inputs.mc.overlay ];
|
nixpkgs.overlays = [ inputs.mc.overlay ];
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = "powersave"; # performance governor causes overheating and thermal throttling, works fine with powesave
|
|
||||||
boot.kernel.sysctl."vm.swappiness" = 10; # reduce swap usage and keep memory performance smooth
|
|
||||||
|
|
||||||
services.minecraft-servers = {
|
services.minecraft-servers = {
|
||||||
# LOCK IN
|
# LOCK IN
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue