Commit a7aab159 authored by Naoki OKAMURA's avatar Naoki OKAMURA

improved: updated udev rules for light command

parent 7e145e4a
......@@ -133,6 +133,13 @@
powerManagement.enable = true;
# powerManagement.powertop.enable = true;
# Devices
# -------
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 g+w /sys/class/backlight/%k/brightness"
'';
# FileSystems
# ===========
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment