about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hosts/luna/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/hosts/luna/default.nix b/hosts/luna/default.nix
index d974306..08b665a 100644
--- a/hosts/luna/default.nix
+++ b/hosts/luna/default.nix
@@ -17,6 +17,20 @@
       # don’t shutdown when power button is short-pressed
       HandlePowerKey=ignore
     '';
+    udev.extraHwdb = ''
+      evdev:name:AT Translated Set 2 keyboard:*
+       KEYBOARD_KEY_3b=back
+       KEYBOARD_KEY_3c=forward
+       KEYBOARD_KEY_3d=refresh
+       KEYBOARD_KEY_3e=fullscreen
+       KEYBOARD_KEY_3f=switchvideomode
+       KEYBOARD_KEY_40=brightnessdown
+       KEYBOARD_KEY_41=brightnessup
+       KEYBOARD_KEY_42=mute
+       KEYBOARD_KEY_43=volumedown
+       KEYBOARD_KEY_44=volumeup
+       KEYBOARD_KEY_db=search
+    '';
   };
 
   # Pick only one of the below networking options.