diff --git a/modules/bootstrap-default.nix b/modules/bootstrap-default.nix index c8fc891..c5b7b7e 100644 --- a/modules/bootstrap-default.nix +++ b/modules/bootstrap-default.nix @@ -109,7 +109,6 @@ immich-db.storage = "5Gi"; attic.storage = "15Gi"; attic-db.storage = "150Mi"; - jellyfin.storage = "10Gi"; transmission.storage = "25Mi"; minecraft.storage = "1Gi"; ntfy.storage = "300Mi"; diff --git a/modules/media.nix b/modules/media.nix index a6d66b7..0b550f4 100644 --- a/modules/media.nix +++ b/modules/media.nix @@ -73,21 +73,20 @@ in { }; volumes = { - config.persistentVolumeClaim.claimName = "jellyfin"; cache.persistentVolumeClaim.claimName = "jellyfin-cache"; music.persistentVolumeClaim.claimName = "music"; + config.hostPath = { + path = "/mnt/longhorn/persistent/volumes/jellyfin"; + type = "Directory"; + }; + media.hostPath = { path = "/mnt/longhorn/persistent/media"; type = "Directory"; }; }; - securityContext = { - fsGroup = 0; - fsGroupChangePolicy = "OnRootMismatch"; - }; - affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms = [ { matchExpressions = [ @@ -808,11 +807,6 @@ in { }; longhorn.persistentVolumeClaim = { - jellyfin = lib.mkIf cfg.jellyfin.enable { - volumeName = "jellyfin"; - storage = "10Gi"; - }; - music = lib.mkIf cfg.jellyfin.enable { volumeName = "music"; storage = "70Gi";