summaryrefslogtreecommitdiff
path: root/sys/hardware/laptop.nix
blob: d9ba753d14a25668cc28efadc716c472f9cad6e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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;
    };
  };
}