l baseX: manage brightness via acpilight

This commit is contained in:
lassulus 2019-09-22 12:12:29 +02:00
parent 037ca410ef
commit a58a3476f2

View File

@ -59,6 +59,7 @@ in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
acpi acpi
acpilight
ag ag
cabal2nix cabal2nix
cholerab cholerab
@ -81,7 +82,6 @@ in {
termite termite
xclip xclip
xephyrify xephyrify
xorg.xbacklight
xorg.xhost xorg.xhost
xsel xsel
zathura zathura
@ -94,6 +94,12 @@ in {
xlibs.fontschumachermisc xlibs.fontschumachermisc
]; ];
services.udev.extraRules = ''
SUBSYSTEM=="backlight", ACTION=="add", \
RUN+="${pkgs.coreutils}/bin/chgrp video /sys/class/backlight/%k/brightness", \
RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/%k/brightness"
'';
services.xserver = { services.xserver = {
enable = true; enable = true;
layout = "us"; layout = "us";