nixos: services: servarr: bazarr: add 'port'
This commit is contained in:
parent
860c13ab1f
commit
1f876d3e21
1 changed files with 9 additions and 1 deletions
|
|
@ -7,12 +7,20 @@ in
|
||||||
enable = lib.mkEnableOption "Bazarr" // {
|
enable = lib.mkEnableOption "Bazarr" // {
|
||||||
default = config.my.services.servarr.enableAll;
|
default = config.my.services.servarr.enableAll;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
port = mkOption {
|
||||||
|
type = types.port;
|
||||||
|
default = 6767;
|
||||||
|
example = 8080;
|
||||||
|
description = "Internal port for webui";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.bazarr = {
|
services.bazarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
group = "media";
|
group = "media";
|
||||||
|
listenPort = cfg.port;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set-up media group
|
# Set-up media group
|
||||||
|
|
@ -20,7 +28,7 @@ in
|
||||||
|
|
||||||
my.services.nginx.virtualHosts = {
|
my.services.nginx.virtualHosts = {
|
||||||
bazarr = {
|
bazarr = {
|
||||||
port = 6767;
|
inherit (cfg) port;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue