Allow users in the video group to change the screen brightness.
This commit is contained in:
parent
09df9f171a
commit
a619bea0fc
1 changed files with 4 additions and 0 deletions
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue