1
0
Fork 0
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:
Austin Horstman 2025-07-29 12:20:22 -05:00 committed by GitHub
parent 25deca8939
commit 03fdb31290
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 147 additions and 70 deletions

View file

@ -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}";
};
};
};