diff --git a/modules/bootstrap-default.nix b/modules/bootstrap-default.nix index f2db421..d9c419c 100644 --- a/modules/bootstrap-default.nix +++ b/modules/bootstrap-default.nix @@ -16,11 +16,6 @@ includeCRDs = true; }; - # argo-workflows = { - # chart = nixhelm.chartsDerivations.${system}.argoproj.argo-workflows; - # includeCRDs = true; - # }; - longhorn = { chart = nixhelm.chartsDerivations.${system}.longhorn.longhorn; includeCRDs = true; @@ -87,6 +82,9 @@ ipAddressPools.main.spec.addresses = ["192.168.30.128-192.168.30.200" "2a0d:6e00:1a77:30::2-2a0d:6e00:1a77:30:ffff:ffff:ffff:fffe"]; l2Advertisements.main.metadata = {}; + + # We don't need backups for music, just replication is enough. + persistentVolumes.music.spec.csi.volumeAttributes.recurringJobSelector = lib.mkForce ""; }; }; @@ -126,6 +124,7 @@ authentik-db.storage = "10Gi"; authentik-redis.storage = "5Gi"; mealie.storage = "3Gi"; + music.storage = "70Gi"; }; tailscaleIngresses.tailscale-longhorn = { diff --git a/modules/media.nix b/modules/media.nix index 44535f7..43e629b 100644 --- a/modules/media.nix +++ b/modules/media.nix @@ -64,12 +64,17 @@ in { name = "cache"; mountPath = "/config/transcodes"; } + { + name = "music"; + mountPath = "/media/music"; + } ]; }; volumes = { config.persistentVolumeClaim.claimName = "jellyfin"; cache.persistentVolumeClaim.claimName = "jellyfin-cache"; + music.persistentVolumeClaim.claimName = "music"; media.hostPath = { path = "/mnt/longhorn/persistent/media"; @@ -736,6 +741,11 @@ in { volumeName = "bazarr"; storage = "25Mi"; }; + + music = lib.mkIf cfg.jellyfin.enable { + volumeName = "music"; + storage = "70Gi"; + }; }; }; };