2017-12-24 23:21:05 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../. ];
|
|
|
|
|
|
|
|
boot.kernel.sysctl = {
|
|
|
|
"vm.laptop_mode" = lib.mkDefault 5;
|
|
|
|
};
|
|
|
|
|
2017-12-25 04:46:15 +00:00
|
|
|
# TODO: fix in NixOS/nixpkgs
|
|
|
|
# Disable governor set in hardware-configuration.nix,
|
|
|
|
# required when services.tlp.enable is true:
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkForce null;
|
|
|
|
|
2017-12-24 23:21:05 +00:00
|
|
|
services.tlp.enable = lib.mkDefault true;
|
|
|
|
}
|