diff options
-rw-r--r-- | etc/guix/system.scm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/guix/system.scm b/etc/guix/system.scm index 1401ab0..f0d15bb 100644 --- a/etc/guix/system.scm +++ b/etc/guix/system.scm @@ -27,6 +27,11 @@ "/share/xsessions/xmonad.desktop") (("Name=xmonad-next") "Name=xmonad")))))))))) +(define backlight-device + (call-with-input-file + (string-append (getenv "XDG_CONFIG_HOME") + "/backlight-device") + read-line)) (operating-system (kernel linux) @@ -72,6 +77,17 @@ (service cups-service-type (cups-configuration (web-interface? #t))) + #; + (udev-rules-service + 'backlight + (udev-rule + "backlight.rule" + (string-replace + #"- + ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="@DEVICE@", GROUP="video", MODE="0664" + "# + "@DEVICE@" + backlight-device))) (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout) |