2020-06-21 00:41:09 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.hardware.keyboard.zsa;
|
2023-02-15 04:34:22 +01:00
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
|
2020-06-21 00:41:09 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.hardware.keyboard.zsa = {
|
2023-02-15 04:34:22 +01:00
|
|
|
enable = mkEnableOption ''
|
|
|
|
udev rules for keyboards from ZSA like the ErgoDox EZ, Planck EZ and Moonlander Mark I.
|
|
|
|
You need it when you want to flash a new configuration on the keyboard
|
|
|
|
or use their live training in the browser.
|
2023-10-18 22:59:26 +02:00
|
|
|
You may want to install the wally-cli package
|
2023-02-15 04:34:22 +01:00
|
|
|
'';
|
2020-06-21 00:41:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.udev.packages = [ pkgs.zsa-udev-rules ];
|
|
|
|
};
|
|
|
|
}
|