diff --git a/modules/bootstrap-default.nix b/modules/bootstrap-default.nix index 0a3dd90..f62dfc4 100644 --- a/modules/bootstrap-default.nix +++ b/modules/bootstrap-default.nix @@ -88,8 +88,6 @@ lab = { longhorn.persistentVolume = { kitchenowl.storage = "100Mi"; - immich.storage = "50Gi"; - immich-db.storage = "5Gi"; attic.storage = "15Gi"; attic-db.storage = "150Mi"; minecraft.storage = "1Gi"; diff --git a/modules/immich.nix b/modules/immich.nix index 0317b8b..fe7b68b 100644 --- a/modules/immich.nix +++ b/modules/immich.nix @@ -33,7 +33,12 @@ }; spec = { - volumes.data.persistentVolumeClaim.claimName = "data"; + nodeName = "jefke"; + + volumes.data.hostPath = { + path = "/mnt/longhorn/persistent/volumes/immich"; + type = "Directory"; + }; enableServiceLinks = false; @@ -161,7 +166,12 @@ }; spec = { - volumes.data.persistentVolumeClaim.claimName = "database"; + nodeName = "jefke"; + + volumes.data.hostPath = { + path = "/mnt/longhorn/persistent/volumes/immich-db"; + type = "Directory"; + }; containers.postgres = { image = globals.images.immich-postgres; @@ -260,18 +270,6 @@ host = "immich"; service.name = "server"; }; - - longhorn.persistentVolumeClaim = { - data = { - volumeName = "immich"; - storage = "50Gi"; - }; - - database = { - volumeName = "immich-db"; - storage = "5Gi"; - }; - }; }; }; }