hosts/{ao,shiro}: tweak cpu governors

This commit is contained in:
Henrik Lissner 2021-01-29 14:06:06 -05:00
parent 1455114778
commit a7e7b1703a
2 changed files with 4 additions and 1 deletions

View file

@ -11,6 +11,7 @@
## CPU ## CPU
nix.maxJobs = lib.mkDefault 2; nix.maxJobs = lib.mkDefault 2;
powerManagement.cpuFreqGovernor = "ondemand";
## Harddrives ## Harddrives
fileSystems = { fileSystems = {

View file

@ -23,8 +23,10 @@
# CPU # CPU
nix.maxJobs = lib.mkDefault 8; nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
# performance gives better battery life/perf than ondemand on sandy bridge and
# newer because of intel pstates.
powerManagement.cpuFreqGovernor = "performance";
# Power management # Power management
environment.systemPackages = [ pkgs.acpi ]; environment.systemPackages = [ pkgs.acpi ];