2025-04-07 09:48:52 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
inherit (lib.options) mkEnableOption;
|
2025-04-09 15:31:18 +02:00
|
|
|
|
|
|
|
cfg = config.modules.services.kanata;
|
2025-04-07 09:48:52 +02:00
|
|
|
in {
|
|
|
|
options.modules.services.kanata.enable = mkEnableOption "kanata";
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.kanata = {
|
|
|
|
enable = true;
|
2025-03-31 11:04:54 +02:00
|
|
|
|
2025-04-07 09:48:52 +02:00
|
|
|
keyboards.daskeyboard = {
|
|
|
|
devices = ["/dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd"];
|
|
|
|
config = builtins.readFile (./. + "/main.kbd");
|
|
|
|
};
|
2025-03-31 14:27:58 +02:00
|
|
|
|
2025-04-07 09:48:52 +02:00
|
|
|
keyboards.laptop = {
|
|
|
|
devices = ["/dev/input/by-path/platform-i8042-serio-0-event-kbd"];
|
|
|
|
config = builtins.readFile (./. + "/main.kbd");
|
|
|
|
};
|
2025-03-31 14:27:58 +02:00
|
|
|
};
|
2025-03-31 11:04:54 +02:00
|
|
|
};
|
|
|
|
}
|