mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
418cc44106
- Fixed the `systemPackages` definition: it contained just the package name without preceding `pkgs` - Removed `lib.mdDoc` usage in accordance with #303841
35 lines
783 B
Nix
35 lines
783 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.soundmodem;
|
|
in
|
|
{
|
|
options = {
|
|
programs.soundmodem = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Whether to add Soundmodem to the global environment and configure a
|
|
wrapper for 'soundmodemconfig' for users in the 'soundmodem' group.
|
|
'';
|
|
};
|
|
package = mkPackageOption pkgs "soundmodem" { };
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
users.groups.soundmodem = { };
|
|
|
|
security.wrappers.soundmodemconfig = {
|
|
source = "${cfg.package}/bin/soundmodemconfig";
|
|
owner = "root";
|
|
group = "soundmodem";
|
|
permissions = "u+rx,g+x";
|
|
};
|
|
};
|
|
}
|