diff options
Diffstat (limited to 'nixpkgs/nixos/modules/hardware/keyboard/uhk.nix')
-rw-r--r-- | nixpkgs/nixos/modules/hardware/keyboard/uhk.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nixpkgs/nixos/modules/hardware/keyboard/uhk.nix b/nixpkgs/nixos/modules/hardware/keyboard/uhk.nix new file mode 100644 index 000000000000..a5bd35c2a550 --- /dev/null +++ b/nixpkgs/nixos/modules/hardware/keyboard/uhk.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.hardware.keyboard.uhk; + inherit (lib) mkEnableOption mkIf; + +in +{ + options.hardware.keyboard.uhk = { + enable = mkEnableOption '' + non-root access to the firmware of UHK keyboards. + You need it when you want to flash a new firmware on the keyboard. + Access to the keyboard is granted to users in the "input" group. + You may want to install the uhk-agent package + ''; + + }; + + config = mkIf cfg.enable { + services.udev.packages = [ pkgs.uhk-udev-rules ]; + }; +} |