nixos: services: servarr: starr: add 'port'
Now that declarative configurations are supported for those applications.
This commit is contained in:
parent
8e6be43817
commit
d783b5f5ee
1 changed files with 14 additions and 1 deletions
|
|
@ -15,12 +15,25 @@ in
|
|||
enable = lib.mkEnableOption (lib.toSentenceCase starr) // {
|
||||
default = config.my.services.servarr.enableAll;
|
||||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.port;
|
||||
default = ports.${starr};
|
||||
example = 8080;
|
||||
description = "Internal port for webui";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.${starr} = {
|
||||
enable = true;
|
||||
group = "media";
|
||||
|
||||
settings = {
|
||||
server = {
|
||||
port = cfg.port;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Set-up media group
|
||||
|
|
@ -28,7 +41,7 @@ in
|
|||
|
||||
my.services.nginx.virtualHosts = {
|
||||
${starr} = {
|
||||
port = ports.${starr};
|
||||
port = cfg.port;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue