summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@gmail.com>2017-12-25 04:46:15 +0000
committerYegor Timoshenko <yegortimoshenko@gmail.com>2017-12-25 04:46:15 +0000
commitf9a1ac62972dc755c70a8cf2c8b28989d6832369 (patch)
treebe425b2ee138b37de300b580f3d92812274ca75c /common
parent88bd1266a78d88bea8efaec6ed6e2ba714f0872b (diff)
common/pc/laptop: disable cpuFreqGovernor
Diffstat (limited to 'common')
-rw-r--r--common/pc/laptop/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/pc/laptop/default.nix b/common/pc/laptop/default.nix
index 305c160..5da1e60 100644
--- a/common/pc/laptop/default.nix
+++ b/common/pc/laptop/default.nix
@@ -7,5 +7,10 @@
"vm.laptop_mode" = lib.mkDefault 5;
};
+ # TODO: fix in NixOS/nixpkgs
+ # Disable governor set in hardware-configuration.nix,
+ # required when services.tlp.enable is true:
+ powerManagement.cpuFreqGovernor = lib.mkForce null;
+
services.tlp.enable = lib.mkDefault true;
}