feat: add go

This commit is contained in:
2025-05-26 00:08:45 -07:00
parent df6b1e0ff4
commit 877b8075bf
9 changed files with 60 additions and 17 deletions

31
nix/modules/keyd.nix Normal file
View File

@@ -0,0 +1,31 @@
{
pkgs,
lib,
config,
...
}:
{
options.keyd = {
enable = lib.mkEnableOption "enable keyd";
};
config = lib.mkIf config.keyd.enable {
users.extraGroups.keyd = {
name = "keyd";
};
users.users.luca.extraGroups = [ "keyd" ];
environment.systemPackages = with pkgs; [
keyd
];
services.keyd = {
enable = true;
keyboards.main = {
settings = {
main = {
capslock = "esc";
};
};
};
};
};
}