2021-03-07 18:47:59 +01:00
|
|
|
# ZSA keyboard udev rules
|
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
2021-05-29 16:38:54 +02:00
|
|
|
cfg = config.my.hardware.ergodox;
|
2021-03-07 18:47:59 +01:00
|
|
|
in
|
|
|
|
{
|
2021-05-29 16:38:54 +02:00
|
|
|
options.my.hardware.ergodox = with lib; {
|
2021-03-07 18:47:59 +01:00
|
|
|
enable = mkEnableOption "ZSA udev rules and user group configuration";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
hardware.keyboard.zsa.enable = true;
|
|
|
|
};
|
|
|
|
}
|