From 3e6d0b0340106337d5e465a254419b0e1066acb8 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 29 May 2024 01:05:01 -0500 Subject: [PATCH] feat(nix/host/price): install keyd --- hosts/orion/modules/services/keyd.nix | 20 ++++++++++++++++++++ hosts/orion/modules/users.nix | 3 ++- users/price/dots/.config/keyd/app.conf | 3 +++ users/price/home.nix | 2 +- 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 hosts/orion/modules/services/keyd.nix diff --git a/hosts/orion/modules/services/keyd.nix b/hosts/orion/modules/services/keyd.nix new file mode 100644 index 00000000..ef5bf7a3 --- /dev/null +++ b/hosts/orion/modules/services/keyd.nix @@ -0,0 +1,20 @@ +{ ... }: +{ + users.groups.keyd = {}; + systemd.services.keyd.serviceConfig.Group = "keyd"; + services.keyd = { + enable = true; + keyboards.default = { + ids = [ "*" ]; + settings = { + main = { + leftmeta = "layer(meta_custom)"; + }; + "meta_custom:M" = { + c = "C-c"; + v = "C-v"; + }; + }; + }; + }; +} \ No newline at end of file diff --git a/hosts/orion/modules/users.nix b/hosts/orion/modules/users.nix index 92c0dd89..9509c2da 100644 --- a/hosts/orion/modules/users.nix +++ b/hosts/orion/modules/users.nix @@ -2,6 +2,7 @@ { security.sudo.wheelNeedsPassword = false; users.groups.price = { }; + users.mutableUsers = false; users.users = { root.hashedPasswordFile = config.age.secrets.users-root-pw.path; price = { @@ -30,4 +31,4 @@ files = [ ".bash_history" ]; }; }; -} +} \ No newline at end of file diff --git a/users/price/dots/.config/keyd/app.conf b/users/price/dots/.config/keyd/app.conf index aaf25f64..2531f6a4 100644 --- a/users/price/dots/.config/keyd/app.conf +++ b/users/price/dots/.config/keyd/app.conf @@ -1,2 +1,5 @@ [neovide] leftmeta = leftmeta + +[org-wezfurlong-wezterm] +leftmeta = leftmeta diff --git a/users/price/home.nix b/users/price/home.nix index 5a934dc4..e53e7d5e 100644 --- a/users/price/home.nix +++ b/users/price/home.nix @@ -536,7 +536,7 @@ in PartOf = [ "keyd.service" ]; }; Service = { - ExecStart = "keyd-application-mapper"; + ExecStart = "${pkgs.keyd}/bin/keyd-application-mapper"; RestartSec = 3; }; Install.WantedBy = [ "compositor.target" ];