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

{
  imports = [ ../. ];

  boot.kernel.sysctl = {
    "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;
}