feat: {install,configure,import} keyd module

This commit is contained in:
Ahwx 2026-06-21 16:01:08 +02:00
parent a75e9e02a8
commit ddd38a4810
3 changed files with 17 additions and 0 deletions

View file

@ -17,6 +17,7 @@
./../../modules/services/mullvad.nix
# ./../../modules/services/automount.nix
# ./../../modules/home/webapps.nix
./../../modules/services/keyd.nix
];
hardware.asahi.peripheralFirmwareDirectory = ./firmware;

View file

@ -294,6 +294,8 @@
nix-switch-upgrade = "sudo nixos-rebuild switch --upgrade --flake ~/nixos-config#${host}";
nix-flake-update = "sudo nix flake update ~/nixos-config#";
nix-clean = "sudo nix-collect-garbage && sudo nix-collect-garbage -d && sudo rm /nix/var/nix/gcroots/auto/* && nix-collect-garbage && nix-collect-garbage -d";
keydon = "sudo systemctl start keyd";
keydoff = "sudo systemctl stop keyd";
};
plugins = with pkgs; [

14
modules/services/keyd.nix Normal file
View file

@ -0,0 +1,14 @@
{
services.keyd = {
enable = true;
keyboards.default.settings = {
main.capslock = "overload(control, esc)";
control = {
h = "left";
j = "down";
k = "up";
l = "right";
};
};
};
}