From 6e595b86d776c5ce70228b9c0debf4ea65ca1677 Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 17 Sep 2023 14:06:53 -0400 Subject: [PATCH] hosts: move jellyfin to yuki --- hosts/sakura/hardware-configuration.nix | 5 ----- hosts/sakura/services/default.nix | 1 - hosts/sakura/services/traefik.nix | 12 ------------ hosts/yuki/hardware-configuration.nix | 5 +++++ hosts/yuki/services/default.nix | 1 + hosts/{sakura => yuki}/services/jellyfin.nix | 0 hosts/yuki/services/traefik.nix | 12 ++++++++++++ 7 files changed, 18 insertions(+), 18 deletions(-) rename hosts/{sakura => yuki}/services/jellyfin.nix (100%) diff --git a/hosts/sakura/hardware-configuration.nix b/hosts/sakura/hardware-configuration.nix index 03eb9ed..fc77326 100644 --- a/hosts/sakura/hardware-configuration.nix +++ b/hosts/sakura/hardware-configuration.nix @@ -17,11 +17,6 @@ fsType = "ext4"; }; - fileSystems."/media" = { - device = "192.168.1.71:/volume1/media"; - fsType = "nfs"; - }; - swapDevices = [ {device = "/dev/disk/by-uuid/c5afba13-f1af-4e7f-994b-f565c52d92fc";} ]; diff --git a/hosts/sakura/services/default.nix b/hosts/sakura/services/default.nix index f1ff5f1..a5ca33f 100644 --- a/hosts/sakura/services/default.nix +++ b/hosts/sakura/services/default.nix @@ -4,7 +4,6 @@ ./authelia.nix ./hugo.nix ./forgejo.nix - ./jellyfin.nix ./rustypaste.nix ./woodpecker.nix ./hedgedoc.nix diff --git a/hosts/sakura/services/traefik.nix b/hosts/sakura/services/traefik.nix index 647f26a..6aaf3de 100644 --- a/hosts/sakura/services/traefik.nix +++ b/hosts/sakura/services/traefik.nix @@ -25,16 +25,6 @@ entrypoints = ["websecure"]; service = "api@internal"; }; - jellyfin = { - rule = "Host(`jellyfin.home.arpa`)"; - entrypoints = ["web"]; - service = "jellyfin"; - }; - jellyseerr = { - rule = "Host(`jellyseerr.home.arpa`)"; - entrypoints = ["web"]; - service = "jellyseerr"; - }; dashdot = { rule = "Host(`dashdot.sakura.home.arpa`)"; entrypoints = ["web"]; @@ -116,8 +106,6 @@ authelia.loadBalancer.servers = [{url = "http://localhost:9091";}]; dashdot.loadBalancer.servers = [{url = "http://localhost:4000";}]; hugo.loadBalancer.servers = [{url = "http://localhost:1313";}]; - jellyfin.loadBalancer.servers = [{url = "http://localhost:8096";}]; - jellyseerr.loadBalancer.servers = [{url = "http://localhost:5055";}]; foundryvtt.loadBalancer.servers = [{url = "http://localhost:30000";}]; gitea.loadBalancer.servers = [{url = "http://localhost:3200";}]; rustypaste.loadBalancer.servers = [{url = "http://localhost:8000";}]; diff --git a/hosts/yuki/hardware-configuration.nix b/hosts/yuki/hardware-configuration.nix index e65022c..4c82811 100644 --- a/hosts/yuki/hardware-configuration.nix +++ b/hosts/yuki/hardware-configuration.nix @@ -33,6 +33,11 @@ fsType = "nfs"; }; + fileSystems."/media" = { + device = "192.168.1.71:/volume1/media"; + fsType = "nfs"; + }; + swapDevices = [ {device = "/dev/disk/by-uuid/34a9e234-35da-4140-b231-2bb983a5204b";} ]; diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix index 18c7957..aad648a 100644 --- a/hosts/yuki/services/default.nix +++ b/hosts/yuki/services/default.nix @@ -6,5 +6,6 @@ ./searxng.nix ./homarr.nix ./dashdot.nix + ./jellyfin.nix ]; } diff --git a/hosts/sakura/services/jellyfin.nix b/hosts/yuki/services/jellyfin.nix similarity index 100% rename from hosts/sakura/services/jellyfin.nix rename to hosts/yuki/services/jellyfin.nix diff --git a/hosts/yuki/services/traefik.nix b/hosts/yuki/services/traefik.nix index ab2cae6..2e048fa 100644 --- a/hosts/yuki/services/traefik.nix +++ b/hosts/yuki/services/traefik.nix @@ -30,12 +30,24 @@ _: { entrypoints = ["web"]; service = "dashdot"; }; + jellyfin = { + rule = "Host(`jellyfin.home.arpa`)"; + entrypoints = ["web"]; + service = "jellyfin"; + }; + jellyseerr = { + rule = "Host(`jellyseerr.home.arpa`)"; + entrypoints = ["web"]; + service = "jellyseerr"; + }; }; services = { stash.loadBalancer.servers = [{url = "http://localhost:9999";}]; homarr.loadBalancer.servers = [{url = "http://localhost:7575";}]; dashdot.loadBalancer.servers = [{url = "http://localhost:4000";}]; searxng.loadBalancer.servers = [{url = "http://localhost:8100";}]; + jellyfin.loadBalancer.servers = [{url = "http://localhost:8096";}]; + jellyseerr.loadBalancer.servers = [{url = "http://localhost:5055";}]; }; }; };