about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-15 14:33:08 +0900
committersefidel <contact@sefidel.net>2023-02-15 15:26:50 +0900
commitb179dd22e3c467c350d7c413988331d674508409 (patch)
tree64c884e33f46badde3bf763111df4a56ef3e2c7d /nixos
parent08d7136a2e3150dd898cf2d2d3756801dfb407bd (diff)
downloadnixrc-b179dd22e3c467c350d7c413988331d674508409.tar.gz
nixrc-b179dd22e3c467c350d7c413988331d674508409.zip
feat(nixos/kompakt): enable GPU & backlight control
Diffstat (limited to 'nixos')
-rw-r--r--nixos/kompakt/configuration.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/kompakt/configuration.nix b/nixos/kompakt/configuration.nix
index 716ceb5..e318ebc 100644
--- a/nixos/kompakt/configuration.nix
+++ b/nixos/kompakt/configuration.nix
@@ -48,6 +48,16 @@
 
   sound.enable = true;
 
+  # Backlight control
+  programs.light.enable = true;
+  services.actkbd = {
+    enable = true;
+    bindings = [
+      { keys = [ 224 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -U 10"; }
+      { keys = [ 225 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -A 10"; }
+    ];
+  };
+
   fonts = {
     fontDir.enable = true;