diff --git a/modules/authentik.nix b/modules/authentik.nix index e3d8746..5737238 100644 --- a/modules/authentik.nix +++ b/modules/authentik.nix @@ -89,18 +89,6 @@ }; lab = { - longhorn.persistentVolumeClaim = { - db = { - volumeName = "authentik-db"; - storage = "10Gi"; - }; - - redis = { - volumeName = "authentik-redis"; - storage = "5Gi"; - }; - }; - ingresses.authentik = { host = "authentik.kun.is"; diff --git a/modules/immich.nix b/modules/immich.nix index fe7b68b..8421af1 100644 --- a/modules/immich.nix +++ b/modules/immich.nix @@ -94,7 +94,10 @@ }; spec = { - volumes.cache.persistentVolumeClaim.claimName = "cache"; + volumes.cache.hostPath = { + path = "/tmp/immich-ml-cache"; + type = "DirectoryOrCreate"; + }; containers.machine-learning = { image = globals.images.immich-machine-learning; @@ -258,11 +261,6 @@ }; }; }; - - persistentVolumeClaims.cache.spec = { - accessModes = ["ReadWriteOnce"]; - resources.requests.storage = "5Gi"; - }; }; lab = { diff --git a/modules/media.nix b/modules/media.nix index ed42cee..248991c 100644 --- a/modules/media.nix +++ b/modules/media.nix @@ -74,7 +74,10 @@ in { }; volumes = { - cache.persistentVolumeClaim.claimName = "jellyfin-cache"; + cache.hostPath = { + path = "/tmp/jellyfin-cache"; + type = "DirectoryOrCreate"; + }; music.hostPath = { path = "/mnt/longhorn/persistent/music"; @@ -587,13 +590,6 @@ in { }; }; }; - - persistentVolumeClaims.jellyfin-cache = lib.mkIf cfg.jellyfin.enable { - spec = { - accessModes = ["ReadWriteOnce"]; - resources.requests.storage = "20Gi"; - }; - }; }; lab = { diff --git a/modules/ntfy.nix b/modules/ntfy.nix index b911c75..17027c9 100644 --- a/modules/ntfy.nix +++ b/modules/ntfy.nix @@ -48,13 +48,20 @@ }; volumes = { - cache.persistentVolumeClaim.claimName = "cache"; - attachment-cache.persistentVolumeClaim.claimName = "attachment-cache"; - data.hostPath = { path = "/mnt/longhorn/persistent/volumes/ntfy"; type = "Directory"; }; + + cache.hostPath = { + path = "/tmp/ntfy-cache"; + type = "DirectoryOrCreate"; + }; + + attachment-cache.hostPath = { + path = "/tmp/ntfy-attachment-cache"; + type = "DirectoryOrCreate"; + }; }; securityContext = { @@ -65,18 +72,6 @@ }; }; - persistentVolumeClaims = { - cache.spec = { - accessModes = ["ReadWriteOnce"]; - resources.requests.storage = "300Mi"; - }; - - attachment-cache.spec = { - accessModes = ["ReadWriteOnce"]; - resources.requests.storage = "500Mi"; - }; - }; - services.ntfy.spec = { selector.app = "ntfy";