summaryrefslogtreecommitdiff
path: root/sys/hardware/laptop.nix
blob: 3b5b7727b57064444d1bdaf46012935b4b53667e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.local.hardware.laptop;
in {
  options.local.hardware.laptop = {
    enable = mkEnableOption "laptop stuff";
  };

  config = mkIf cfg.enable {
    services = {
      tlp.enable = true;
      upower.enable = true;
    };
  };
}