bazarr: allow overriding package in module (#334521)
This commit is contained in:
commit
05b9e0a09f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user