at 24.11-pre 538 B view raw
1{ config, lib, pkgs, ... }: 2 3let 4 cfg = config.hardware.keyboard.uhk; 5 inherit (lib) mkEnableOption mkIf; 6 7in 8{ 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 15 ''; 16 17 }; 18 19 config = mkIf cfg.enable { 20 services.udev.packages = [ pkgs.uhk-udev-rules ]; 21 }; 22}