]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/acpid.nix
mpv: af: default to loudnorm
[julm/julm-nix.git] / nixos / profiles / acpid.nix
1 { pkgs, lib, ... }:
2 {
3 hardware.acpilight.enable = true;
4 services.acpid = {
5 enable = true;
6 handlers = {
7 brightnessDown = {
8 event = "video/brightnessdown.*";
9 action = "${pkgs.acpilight}/bin/xbacklight -dec 10";
10 };
11 brightnessUp = {
12 event = "video/brightnessup.*";
13 action = "${pkgs.acpilight}/bin/xbacklight -inc 10";
14 };
15 };
16 lidEventCommands = lib.mkDefault ''
17 ${pkgs.systemd}/bin/systemctl suspend
18 '';
19 powerEventCommands = lib.mkDefault ''
20 ${pkgs.systemd}/bin/systemctl halt
21 '';
22 };
23 }