ctucx.git: nixfiles

ctucx' nixfiles

commit 21cea53aae8a5cc0eb9bb0acb51837368c999725
parent 7fd7575a88b1b81863b290eaae884e72e21294c5
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 11 Jun 2024 18:33:14 +0200

machines/coladose: remap some keys with `keyd`
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/machines/coladose/configuration.nix b/machines/coladose/configuration.nix
@@ -5,6 +5,7 @@
   imports = [
     ./hardware-configuration.nix
     ../../configurations/linux/sway.nix
+    ./keyboard.nix
   ];
 
   deployment.allowLocalDeployment = true;
diff --git a/machines/coladose/keyboard.nix b/machines/coladose/keyboard.nix
@@ -0,0 +1,18 @@
+{ ... }:
+
+{
+
+  services.keyd = {
+    enable = true;
+    keyboards.default = {
+      ids = [ "*" ];
+      settings.main = {
+        "rightalt"     = "rightcontrol";
+        "leftcontrol"  = "leftalt";
+        "leftalt"      = "leftcontrol";
+        "rightcontrol" = "rightalt";
+      };
+    };
+  };
+
+}+
\ No newline at end of file