2020-06-20 22:41:09 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.hardware.keyboard.zsa;
|
2023-02-15 03:34:22 +00:00
|
|
|
inherit (lib) mkEnableOption mkIf mdDoc;
|
|
|
|
|
2020-06-20 22:41:09 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.hardware.keyboard.zsa = {
|
2023-02-15 03:34:22 +00:00
|
|
|
enable = mkEnableOption (mdDoc ''
|
|
|
|
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.
|
|
|
|
You may want to install the wally-cli package.
|
|
|
|
'');
|
2020-06-20 22:41:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.udev.packages = [ pkgs.zsa-udev-rules ];
|
|
|
|
};
|
|
|
|
}
|