bazarr: allow overriding package in module (#334521)

This commit is contained in:
Sefa Eyeoglu 2024-10-20 20:45:57 +02:00 committed by GitHub
commit 05b9e0a09f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,8 @@ in
services.bazarr = { services.bazarr = {
enable = lib.mkEnableOption "bazarr, a subtitle manager for Sonarr and Radarr"; enable = lib.mkEnableOption "bazarr, a subtitle manager for Sonarr and Radarr";
package = lib.mkPackageOption pkgs "bazarr" { };
openFirewall = lib.mkOption { openFirewall = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;
@ -46,7 +48,7 @@ in
StateDirectory = "bazarr"; StateDirectory = "bazarr";
SyslogIdentifier = "bazarr"; SyslogIdentifier = "bazarr";
ExecStart = pkgs.writeShellScript "start-bazarr" '' ExecStart = pkgs.writeShellScript "start-bazarr" ''
${pkgs.bazarr}/bin/bazarr \ ${cfg.package}/bin/bazarr \
--config '/var/lib/${StateDirectory}' \ --config '/var/lib/${StateDirectory}' \
--port ${toString cfg.listenPort} \ --port ${toString cfg.listenPort} \
--no-update True --no-update True