Create Longhorn volume for music

This commit is contained in:
Pim Kunis 2025-02-18 17:30:19 +01:00
parent 851a7d0dcf
commit 93ad02b2da
2 changed files with 14 additions and 5 deletions

View file

@ -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";
};
};
};
};