aboutsummaryrefslogtreecommitdiff
path: root/modules/nixos/hardware/keyboard
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-12-30 18:42:16 -0800
committerCaroline Larimore <caroline@larimo.re>2025-12-30 18:42:16 -0800
commit3a581c848c4d256b6f8c556592ff3e6256f46b64 (patch)
treecf6e98e574e473bb7ec2d2b1f2ffc7b6ebfabb3b /modules/nixos/hardware/keyboard
parent365b0633e8ff0320163f1bcb14c146a26434e723 (diff)
c-pc: enable k95aux
Diffstat (limited to 'modules/nixos/hardware/keyboard')
-rw-r--r--modules/nixos/hardware/keyboard/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/nixos/hardware/keyboard/default.nix b/modules/nixos/hardware/keyboard/default.nix
index 11df0d9..36e3b8b 100644
--- a/modules/nixos/hardware/keyboard/default.nix
+++ b/modules/nixos/hardware/keyboard/default.nix
@@ -5,6 +5,7 @@ with lib; with lib.${namespace}; let
in {
options.${namespace}.hardware.keyboard = with types; {
enable = mkEnableOption "keyboard hardware tweaks";
+ k95.enable = mkEnableOption "k95-specific config";
};
config = mkIf cfg.enable {
@@ -36,5 +37,24 @@ in {
};
};
};
+
+ services.k95aux = {
+ enable = cfg.k95.enable;
+ mapping = {
+ "G1" = 0; "G2" = 0; "G3" = 0;
+ "G4" = 0; "G5" = 0; "G6" = 0;
+
+ "G7" = 0; "G8" = 0; "G9" = 0;
+ "G10" = 0; "G11" = 0; "G12" = 0;
+
+ "G13" = 0; "G14" = 0; "G15" = 0;
+ "G16" = 0; "G17" = 0; "G18" = 0;
+
+ "BRIGHTNESS" = 0;
+ "SUPER_LOCK" = 0;
+
+ "MR" = 0; "M1" = 0; "M2" = 0; "M3" = 0;
+ };
+ };
};
}