feat(nix/host/price): install keyd
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m3s

This commit is contained in:
Price Hiller 2024-05-29 01:05:01 -05:00
parent 628841d8ff
commit 3e6d0b0340
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
4 changed files with 26 additions and 2 deletions

View File

@ -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";
};
};
};
};
}

View File

@ -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" ];
};
};
}
}

View File

@ -1,2 +1,5 @@
[neovide]
leftmeta = leftmeta
[org-wezfurlong-wezterm]
leftmeta = leftmeta

View File

@ -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" ];