mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
treewide: add missing package options (#7575)
Add options to support more flexible module configurations. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
25deca8939
commit
03fdb31290
34 changed files with 147 additions and 70 deletions
|
|
@ -17,6 +17,8 @@ in
|
|||
services.fluidsynth = {
|
||||
enable = lib.mkEnableOption "fluidsynth midi synthesizer";
|
||||
|
||||
package = lib.mkPackageOption pkgs "fluidsynth" { };
|
||||
|
||||
soundFont = mkOption {
|
||||
type = types.path;
|
||||
default = "${pkgs.soundfont-fluid}/share/soundfonts/FluidR3_GM2-2.sf2";
|
||||
|
|
@ -71,7 +73,7 @@ in
|
|||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${pkgs.fluidsynth}/bin/fluidsynth -a pulseaudio -si ${lib.concatStringsSep " " cfg.extraOptions} ${cfg.soundFont}";
|
||||
ExecStart = "${lib.getExe cfg.package} -a pulseaudio -si ${lib.concatStringsSep " " cfg.extraOptions} ${cfg.soundFont}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue