diff options
Diffstat (limited to 'profiles/homeserver')
| -rw-r--r-- | profiles/homeserver/transmission.nix | 81 |
1 files changed, 30 insertions, 51 deletions
diff --git a/profiles/homeserver/transmission.nix b/profiles/homeserver/transmission.nix index 43e3781..8b7b4fa 100644 --- a/profiles/homeserver/transmission.nix +++ b/profiles/homeserver/transmission.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: with lib; { +{ config, lib, pkgs, ... }: with lib; { virtualisation.docker.rootless = { enable = true; setSocketVariable = true; @@ -12,30 +12,32 @@ ]; nixpkgs.config.allowUnfreePredicate = pkg: - builtins.elem (lib.getName pkg) [ - "plexmediaserver" - ]; + builtins.elem (lib.getName pkg) [ + "plexmediaserver" + ]; + + environment.systemPackages = [ + pkgs.jellyfin-ffmpeg + ]; services.nginx = { - virtualHosts = { - "sonarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8989"; }; }; - "radarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:7878"; }; }; - "bazarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:${toString config.services.bazarr.listenPort}"; }; }; - "readarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8787"; }; }; - "prowlarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:9696"; }; }; - "transmission.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:9091"; }; }; - "sabnzb.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8080"; }; }; - "lazylibrarian.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:5299"; }; }; - "plex.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:32400"; }; }; - }; + virtualHosts = { + "sonarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8989"; }; }; + "radarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:7878"; }; }; + "bazarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:${toString config.services.bazarr.listenPort}"; }; }; + "readarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8787"; }; }; + "prowlarr.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:9696"; }; }; + "transmission.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:9091"; }; }; + "jellyfin.${ivi.domain}" = { locations."/" = { proxyPass = "http://127.0.0.1:8096"; }; }; + }; }; services = { - plex = { enable = true; group = "multimedia"; }; - sonarr = { enable = true; group = "multimedia"; }; - radarr = { enable = true; group = "multimedia"; }; - bazarr = { enable = true; group = "multimedia"; }; - readarr = { enable = true; group = "multimedia"; }; - prowlarr = { enable = true; }; + jellyfin = { enable = true; group = "multimedia"; }; + sonarr = { enable = true; group = "multimedia"; }; + radarr = { enable = true; group = "multimedia"; }; + bazarr = { enable = true; group = "multimedia"; }; + readarr = { enable = true; group = "multimedia"; }; + prowlarr = { enable = true; }; }; virtualisation.oci-containers = { backend = "docker"; @@ -51,41 +53,18 @@ ports = [ "9091:9091" "5299:5299" + "8081:80" ]; environmentFiles = [ config.secrets.transmission.path ]; }; - lazylibrarian = { - image = "linuxserver/lazylibrarian"; - extraOptions = ["--network=container:transmission"]; - volumes = [ - "/config/lazylibrarian:/config" - "/data:/data" - ]; - environment = { - PUID="1000"; - PGID="1000"; - TZ="Etc/UTC"; - DOCKER_MODS="linuxserver/mods:lazylibrarian-ffmpeg"; - }; - }; - # sabnzbdvpn = { - # image = "linuxserver/sabnzbd"; - # extraOptions = ["--network=container:transmission"]; - # volumes = [ - # "/sabnzb/data:/data" - # "/sabnzb/config:/config" - # "/etc/localtime:/etc/localtime:ro" - # ]; - # ports = [ - # "8080:8080" - # "8090:8090" - # "8118:8118" - # ]; - # environmentFiles = [ - # config.secrets.sabnzb.path - # ]; + # ytdl-sub = { + # image = "ghcr.io/jmbannon/ytdl-sub:latest"; + # environment = { + # TZ=""; + # DOCKER_MODS="linuxserver/mods:universal-cron"; + # }; # }; }; }; |
