summaryrefslogtreecommitdiff
path: root/modules/laptop.nix
blob: 663c65eeca603f34727a36d3d98c0381a711014f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ lib, config, pkgs, ... }:

{
  options = {
    this.laptop.enable = lib.mkEnableOption "laptop settings";
  };

  config = lib.mkIf config.this.laptop.enable {
    powerManagement.enable = true;
    services.tlp.enable = true;
    programs.light = {
      enable = true;
      brightnessKeys.enable = true;
    };
    environment.systemPackages = with pkgs; [
      acpi
      powertop
    ];
  };
}