blob: 6c9c23d947035d5a05d7f588e869bb52ef18e671 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ 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;
step = 5;
};
};
environment.systemPackages = with pkgs; [
acpi
powertop
];
};
}
|