1 { config, lib, pkgs, ... }:
6 cfg = config.programs.k40-whisperer;
7 pkg = cfg.package.override {
12 options.programs.k40-whisperer = {
13 enable = mkEnableOption (lib.mdDoc "K40-Whisperer");
17 description = lib.mdDoc ''
18 Group assigned to the device when connected.
25 default = pkgs.k40-whisperer;
26 defaultText = literalExpression "pkgs.k40-whisperer";
27 example = literalExpression "pkgs.k40-whisperer";
28 description = lib.mdDoc ''
29 K40 Whisperer package to use.
34 config = mkIf cfg.enable {
35 users.groups.${cfg.group} = {};
37 environment.systemPackages = [ pkg ];
38 services.udev.packages = [ pkg ];