diff --git a/kubenix-modules/atticd.nix b/kubenix-modules/atticd.nix index 2f7a320..7a29c74 100644 --- a/kubenix-modules/atticd.nix +++ b/kubenix-modules/atticd.nix @@ -72,9 +72,14 @@ }; volumes = { - data.persistentVolumeClaim.claimName = "atticd"; + data.persistentVolumeClaim.claimName = "attic"; config.configMap.name = "atticd-config"; }; + + securityContext = { + fsGroup = 0; + fsGroupChangePolicy = "OnRootMismatch"; + }; }; }; }; diff --git a/kubenix-modules/volumes.nix b/kubenix-modules/volumes.nix index b6bdccd..f8ea4bf 100644 --- a/kubenix-modules/volumes.nix +++ b/kubenix-modules/volumes.nix @@ -1,51 +1,4 @@ { - # kubernetes.resources.pods.testje.spec = { - # containers.testje = { - # image = "nginx"; - - # volumeMounts = [ - # { - # name = "jellyfin"; - # mountPath = "/jellyfin"; - # } - # { - # name = "transmission"; - # mountPath = "/transmission"; - # } - # { - # name = "jellyseerr"; - # mountPath = "/jellyseerr"; - # } - # { - # name = "radarr"; - # mountPath = "/radarr"; - # } - # { - # name = "prowlarr"; - # mountPath = "/prowlarr"; - # } - # { - # name = "sonarr"; - # mountPath = "/sonarr"; - # } - # { - # name = "bazarr"; - # mountPath = "/bazarr"; - # } - # ]; - # }; - - # volumes = { - # jellyfin.persistentVolumeClaim.claimName = "jellyfin"; - # transmission.persistentVolumeClaim.claimName = "transmission"; - # jellyseerr.persistentVolumeClaim.claimName = "jellyseerr"; - # radarr.persistentVolumeClaim.claimName = "radarr"; - # prowlarr.persistentVolumeClaim.claimName = "prowlarr"; - # sonarr.persistentVolumeClaim.claimName = "sonarr"; - # bazarr.persistentVolumeClaim.claimName = "bazarr"; - # }; - # }; - lab = { longhornVolumes = { hedgedoc-uploads.storage = "50Mi"; @@ -67,12 +20,12 @@ prowlarr.storage = "150Mi"; sonarr.storage = "150Mi"; bazarr.storage = "25Mi"; + attic.storage = "15Gi"; }; nfsVolumes = { media.path = "media"; music.path = "media/music"; - atticd.path = "atticd"; }; }; } diff --git a/nixos-modules/data-sharing.nix b/nixos-modules/data-sharing.nix index 695d7a5..99e9bbf 100644 --- a/nixos-modules/data-sharing.nix +++ b/nixos-modules/data-sharing.nix @@ -8,15 +8,6 @@ let "/media/movies" "/media/music" "/media/shows" - "/jellyfin/config" - "/transmission/config" - "/jellyseerr/config" - "/radarr/config" - "/prowlarr/config" - "/sonarr/config" - "/bazarr/config" - "/minecraft" - "/atticd" "/longhorn-backup" ];