feat: add go
This commit is contained in:
31
nix/modules/keyd.nix
Normal file
31
nix/modules/keyd.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user