From 34498046b86168c93b39611b678916d85dc0a207 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Fri, 23 May 2025 13:07:22 +0200 Subject: [PATCH] Remove music from Longhorn --- modules/bootstrap-default.nix | 4 ---- modules/media.nix | 13 +++++-------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/modules/bootstrap-default.nix b/modules/bootstrap-default.nix index cf12a23..c37d90e 100644 --- a/modules/bootstrap-default.nix +++ b/modules/bootstrap-default.nix @@ -82,9 +82,6 @@ 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 ""; }; }; @@ -116,7 +113,6 @@ 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 210fe5c..fa8f3e6 100644 --- a/modules/media.nix +++ b/modules/media.nix @@ -73,7 +73,11 @@ in { volumes = { cache.persistentVolumeClaim.claimName = "jellyfin-cache"; - music.persistentVolumeClaim.claimName = "music"; + + music.hostPath = { + path = "/mnt/longhorn/persistent/music"; + type = "Directory"; + }; config.hostPath = { path = "/mnt/longhorn/persistent/volumes/jellyfin"; @@ -715,13 +719,6 @@ in { service.name = "deluge"; }; }; - - longhorn.persistentVolumeClaim = { - music = lib.mkIf cfg.jellyfin.enable { - volumeName = "music"; - storage = "70Gi"; - }; - }; }; }; }