nix-config/modules/ergodox.nix
Bruno BELANYI 012163eb44 modules: add ergodox
This enables usage of ZSA tools, such as `wally` or their online
training tool for any users that are part of `plugdev`.
2021-03-07 18:39:42 +00:00

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" ];
};
}