1 { config, lib, pkgs, ... }:
4 cfg = config.hardware.keyboard.uhk;
5 inherit (lib) mkEnableOption mkIf;
9 options.hardware.keyboard.uhk = {
10 enable = mkEnableOption ''
11 non-root access to the firmware of UHK keyboards.
12 You need it when you want to flash a new firmware on the keyboard.
13 Access to the keyboard is granted to users in the "input" group.
14 You may want to install the uhk-agent package
19 config = mkIf cfg.enable {
20 services.udev.packages = [ pkgs.uhk-udev-rules ];