1 { config, lib, pkgs, ... }:
4 cfg = config.programs.k40-whisperer;
5 pkg = cfg.package.override {
10 options.programs.k40-whisperer = {
11 enable = lib.mkEnableOption "K40-Whisperer";
13 group = lib.mkOption {
16 Group assigned to the device when connected.
21 package = lib.mkPackageOption pkgs "k40-whisperer" { };
24 config = lib.mkIf cfg.enable {
25 users.groups.${cfg.group} = {};
27 environment.systemPackages = [ pkg ];
28 services.udev.packages = [ pkg ];