at 24.11-pre 330 B view raw
1{ config, lib, pkgs, ... }: 2 3let 4 cfg = config.hardware.keyboard.teck; 5 inherit (lib) mkEnableOption mkIf; 6 7in 8{ 9 options.hardware.keyboard.teck = { 10 enable = mkEnableOption "non-root access to the firmware of TECK keyboards"; 11 }; 12 13 config = mkIf cfg.enable { 14 services.udev.packages = [ pkgs.teck-udev-rules ]; 15 }; 16}