refactor(mediabox): library mounts

This commit is contained in:
arcnmx 2024-01-24 12:46:21 -08:00
parent 228e2cf788
commit 59c61d021e
20 changed files with 416 additions and 101 deletions

View file

@ -1,20 +1,8 @@
{config, lib, ...}: let
inherit (lib.modules) mkIf;
cfg = config.services.tautulli;
{lib, ...}: let
inherit (lib.modules) mkDefault;
in {
services = {
tautulli = {
enable = true;
port = 8181;
};
nginx.virtualHosts = {
"tautulli.${config.networking.domain}" = {
locations."/".proxyPass = "http://localhost:${toString cfg.port}";
};
"tautulli.local.${config.networking.domain}" = mkIf cfg.openFirewall {
locations."/".proxyPass = "http://localhost:${toString cfg.port}";
};
};
services.tautulli = {
enable = mkDefault true;
port = mkDefault 8181;
};
}