summaryrefslogtreecommitdiffstats
path: root/common/pc/laptop/default.nix
blob: ebc4931dbc297bef39193574529af6203f97b2d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ config, lib, ... }:

{
  imports = [ ../. ];

  # TODO: fix in NixOS/nixpkgs
  # Disable governor set in hardware-configuration.nix,
  # required when services.tlp.enable is true:
  powerManagement.cpuFreqGovernor =
    lib.mkIf config.services.tlp.enable (lib.mkForce null);

  services.tlp.enable = lib.mkDefault true;
}