ctucx.git: nixfiles

ctucx' nixfiles

commit 80bc076559a6cb8c7a5038c3194465b14076487e
parent 80800c10ba8796bde888922206f7c62b0990f6b8
Author: Katja (ctucx) <git@ctu.cx>
Date: Mon, 3 Mar 2025 18:43:32 +0100

machines/seifenkiste/keyboard: move to `configurations/nixos/services`
3 files changed, 21 insertions(+), 22 deletions(-)
diff --git a/configurations/nixos/services/keyd.nix b/configurations/nixos/services/keyd.nix
@@ -0,0 +1,19 @@
+{ ... }:
+
+{
+
+  services.keyd.enable    = true;
+  services.keyd.keyboards = {
+    seifenkiste = {
+      ids = [ "0001:0001:70533846" ];
+      settings.main = {
+        "leftcontrol"  = "leftalt";
+        "leftalt"      = "leftcontrol";
+        "rightalt"     = "rightcontrol";
+        "sysrq"        = "rightalt";
+        "rightcontrol" = "sysrq";
+      };
+    };
+  };
+
+}+
\ No newline at end of file
diff --git a/machines/seifenkiste/default.nix b/machines/seifenkiste/default.nix
@@ -4,12 +4,11 @@
 
   imports = [
     ./hardware-configuration.nix
-    ./keyboard.nix
 
     ctucxConfig.services.prometheus-exporters
+    ctucxConfig.services.keyd
 
     ctucxConfig.wm.gnome
-
   ];
 
   deployment.allowLocalDeployment = true;
diff --git a/machines/seifenkiste/keyboard.nix b/machines/seifenkiste/keyboard.nix
@@ -1,19 +0,0 @@
-{ ... }:
-
-{
-
-  services.keyd = {
-    enable = true;
-    keyboards.default = {
-      ids = [ "*" ];
-      settings.main = {
-        "leftcontrol"  = "leftalt";
-        "leftalt"      = "leftcontrol";
-        "rightalt"     = "rightcontrol";
-        "sysrq"        = "rightalt";
-        "rightcontrol" = "sysrq";
-      };
-    };
-  };
-
-}-
\ No newline at end of file