2017-12-27 02:46:06 -05:00
|
|
|
{ config, lib, ... }:
|
2017-12-24 18:21:05 -05:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../. ];
|
|
|
|
|
2017-12-24 23:46:15 -05:00
|
|
|
# TODO: fix in NixOS/nixpkgs
|
|
|
|
# Disable governor set in hardware-configuration.nix,
|
|
|
|
# required when services.tlp.enable is true:
|
2017-12-27 02:46:06 -05:00
|
|
|
powerManagement.cpuFreqGovernor =
|
|
|
|
lib.mkIf config.services.tlp.enable (lib.mkForce null);
|
2017-12-24 23:46:15 -05:00
|
|
|
|
2017-12-24 18:21:05 -05:00
|
|
|
services.tlp.enable = lib.mkDefault true;
|
|
|
|
}
|