Allow users in the video group to change the screen brightness.

This commit is contained in:
Kevin Baensch 2023-08-26 08:04:11 +02:00
parent 09df9f171a
commit a619bea0fc
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -52,5 +52,9 @@ in mkIf (elem "desktop" cfg.services) {
}; };
}; };
}; };
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chgrp video /sys/class/backlight/%k/brightness"
ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chmod 664 /sys/class/backlight/%k/brightness"
'';
machine.pkgsets.python3.pkgs = with pkgs.python310Packages; [ py3status pytz tzlocal ]; machine.pkgsets.python3.pkgs = with pkgs.python310Packages; [ py3status pytz tzlocal ];
} }