From c9521463054b86a2e857ebf150b0260062189a80 Mon Sep 17 00:00:00 2001 From: _cry64 Date: Sun, 22 Mar 2026 11:42:51 +1000 Subject: [PATCH] add keyd service --- groups/cryos/default.nix | 3 ++- groups/cryos/keybinds.nix | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 groups/cryos/keybinds.nix diff --git a/groups/cryos/default.nix b/groups/cryos/default.nix index 236930f..d00bae3 100644 --- a/groups/cryos/default.nix +++ b/groups/cryos/default.nix @@ -1,6 +1,7 @@ -{lib, ...}: { +{...}: { imports = [ ./programs.nix + ./keybinds.nix ]; boot.loader = { diff --git a/groups/cryos/keybinds.nix b/groups/cryos/keybinds.nix new file mode 100644 index 0000000..25a3f19 --- /dev/null +++ b/groups/cryos/keybinds.nix @@ -0,0 +1,19 @@ +{...}: { + services.keyd = { + enable = true; + keyboards.default = { + ids = ["*"]; + settings = { + main = { + capslock = "meta"; + + # NOTE: unsure whether or not i like oneshot... + # shift = "oneshot(shift)"; + # control = "oneshot(control)"; + # leftalt = "oneshot(alt)"; + # rightalt = "oneshot(rightalt)"; + }; + }; + }; + }; +}