1 { config, lib, pkgs, ... }:
4 cfg = config.programs.soundmodem;
8 programs.soundmodem = {
9 enable = lib.mkOption {
10 type = lib.types.bool;
13 Whether to add Soundmodem to the global environment and configure a
14 wrapper for 'soundmodemconfig' for users in the 'soundmodem' group.
17 package = lib.mkPackageOption pkgs "soundmodem" { };
21 config = lib.mkIf cfg.enable {
22 environment.systemPackages = [ cfg.package ];
23 users.groups.soundmodem = { };
25 security.wrappers.soundmodemconfig = {
26 source = "${cfg.package}/bin/soundmodemconfig";
29 permissions = "u+rx,g+x";