17 lines
337 B
Nix
17 lines
337 B
Nix
|
# ZSA keyboard udev rules
|
||
|
{ config, lib, ... }:
|
||
|
let
|
||
|
cfg = config.my.modules.ergodox;
|
||
|
in
|
||
|
{
|
||
|
options.my.modules.ergodox = with lib; {
|
||
|
enable = mkEnableOption "ZSA udev rules and user group configuration";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
hardware.keyboard.zsa.enable = true;
|
||
|
|
||
|
users.extraGroups = [ "plugdev" ];
|
||
|
};
|
||
|
}
|