Create Longhorn volume for music
This commit is contained in:
parent
851a7d0dcf
commit
93ad02b2da
2 changed files with 14 additions and 5 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue