aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/backlight-device1
-rw-r--r--etc/bash/rc1
-rw-r--r--etc/guix/system.scm8
3 files changed, 2 insertions, 8 deletions
diff --git a/etc/backlight-device b/etc/backlight-device
deleted file mode 100644
index a493aeb..0000000
--- a/etc/backlight-device
+++ /dev/null
@@ -1 +0,0 @@
-acpi_video0 \ No newline at end of file
diff --git a/etc/bash/rc b/etc/bash/rc
index c406d34..50347d2 100644
--- a/etc/bash/rc
+++ b/etc/bash/rc
@@ -40,6 +40,7 @@ export VISUAL="$EDITOR"
export PAGER='less -R'
export BROWSER='firefox'
export MAILDIR=~/Maildir
+export BACKLIGHT_DEVICE='acpi_video0'
export GUILE_HISTORY="$XDG_STATE_HOME/guile-history"
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
diff --git a/etc/guix/system.scm b/etc/guix/system.scm
index cb57af5..73a5ae8 100644
--- a/etc/guix/system.scm
+++ b/etc/guix/system.scm
@@ -21,12 +21,6 @@
(nongnu system linux-initrd)
(srfi srfi-1))
-(define backlight-device
- (call-with-input-file
- (string-append (getenv "XDG_CONFIG_HOME")
- "/backlight-device")
- read-line))
-
(operating-system
(kernel linux)
(initrd microcode-initrd)
@@ -83,7 +77,7 @@
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="@DEVICE@", GROUP="video", MODE="0664"
"#
"@DEVICE@"
- backlight-device)))
+ (getenv "BACKLIGHT_DEVICE"))))
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout)