mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-07-16 22:21:55 +08:00
feat: {install,configure,import} keyd module
This commit is contained in:
parent
a75e9e02a8
commit
ddd38a4810
3 changed files with 17 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
./../../modules/services/mullvad.nix
|
./../../modules/services/mullvad.nix
|
||||||
# ./../../modules/services/automount.nix
|
# ./../../modules/services/automount.nix
|
||||||
# ./../../modules/home/webapps.nix
|
# ./../../modules/home/webapps.nix
|
||||||
|
./../../modules/services/keyd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.asahi.peripheralFirmwareDirectory = ./firmware;
|
hardware.asahi.peripheralFirmwareDirectory = ./firmware;
|
||||||
|
|
|
||||||
|
|
@ -294,6 +294,8 @@
|
||||||
nix-switch-upgrade = "sudo nixos-rebuild switch --upgrade --flake ~/nixos-config#${host}";
|
nix-switch-upgrade = "sudo nixos-rebuild switch --upgrade --flake ~/nixos-config#${host}";
|
||||||
nix-flake-update = "sudo nix flake update ~/nixos-config#";
|
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";
|
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; [
|
plugins = with pkgs; [
|
||||||
|
|
|
||||||
14
modules/services/keyd.nix
Normal file
14
modules/services/keyd.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue