feat(nix/host/price): install keyd
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m3s
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m3s
This commit is contained in:
parent
628841d8ff
commit
3e6d0b0340
20
hosts/orion/modules/services/keyd.nix
Normal file
20
hosts/orion/modules/services/keyd.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -2,6 +2,7 @@
|
|||||||
{
|
{
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
users.groups.price = { };
|
users.groups.price = { };
|
||||||
|
users.mutableUsers = false;
|
||||||
users.users = {
|
users.users = {
|
||||||
root.hashedPasswordFile = config.age.secrets.users-root-pw.path;
|
root.hashedPasswordFile = config.age.secrets.users-root-pw.path;
|
||||||
price = {
|
price = {
|
||||||
@ -30,4 +31,4 @@
|
|||||||
files = [ ".bash_history" ];
|
files = [ ".bash_history" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -1,2 +1,5 @@
|
|||||||
[neovide]
|
[neovide]
|
||||||
leftmeta = leftmeta
|
leftmeta = leftmeta
|
||||||
|
|
||||||
|
[org-wezfurlong-wezterm]
|
||||||
|
leftmeta = leftmeta
|
||||||
|
@ -536,7 +536,7 @@ in
|
|||||||
PartOf = [ "keyd.service" ];
|
PartOf = [ "keyd.service" ];
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "keyd-application-mapper";
|
ExecStart = "${pkgs.keyd}/bin/keyd-application-mapper";
|
||||||
RestartSec = 3;
|
RestartSec = 3;
|
||||||
};
|
};
|
||||||
Install.WantedBy = [ "compositor.target" ];
|
Install.WantedBy = [ "compositor.target" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user