Merge branch 'overhaul' of ssh://solis:34916/Koen/nix-config into overhaul
This commit is contained in:
commit
27c4701d7f
5 changed files with 32 additions and 1 deletions
|
|
@ -62,5 +62,6 @@ in {
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
users.users.${username}.extraGroups = ["docker"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,6 @@
|
||||||
./gpu/nvidia.nix
|
./gpu/nvidia.nix
|
||||||
./wifi.nix
|
./wifi.nix
|
||||||
./fingerprint.nix
|
./fingerprint.nix
|
||||||
|
./keyd.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
29
modules/hardware/keyd.nix
Normal file
29
modules/hardware/keyd.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.horseman.hardware.keyd;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
horseman.hardware.keyd = {
|
||||||
|
enable = mkEnableOption "Kanata, the key remapper";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.keyd = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
keyboards.main = {
|
||||||
|
ids = ["*"];
|
||||||
|
settings = {
|
||||||
|
main = {
|
||||||
|
capslock = "overload(control, esc)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -53,7 +53,6 @@ in {
|
||||||
];
|
];
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel"
|
"wheel"
|
||||||
"docker"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
horseman.apps.visual.safeeyes.enable = true;
|
horseman.apps.visual.safeeyes.enable = true;
|
||||||
|
horseman.hardware.keyd.enable = true;
|
||||||
|
|
||||||
horseman.wm.hyprland.config = {
|
horseman.wm.hyprland.config = {
|
||||||
execOnce = [
|
execOnce = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue