recovering immich

This commit is contained in:
Motiejus Jakštys 2024-09-27 15:25:07 +03:00
parent 18749eb38a
commit 75ccff51cb

View File

@ -32,13 +32,13 @@ in
]; ];
systemd = { systemd = {
tmpfiles.rules = [ "d /var/cache/immich/userdata 0700 immich immich -" ]; #tmpfiles.rules = [ "d /var/cache/immich/userdata 0700 immich immich -" ];
services.immich-server.serviceConfig = { services.immich-server.serviceConfig = {
ProtectHome = lib.mkForce "tmpfs"; ProtectHome = lib.mkForce "tmpfs";
CacheDirectory = "immich"; CacheDirectory = "immich";
BindPaths = lib.mapAttrsToList ( #BindPaths = lib.mapAttrsToList (
name: srcpath: "${srcpath}:/var/cache/immich/userdata/${name}" # name: srcpath: "${srcpath}:/var/cache/immich/userdata/${name}"
) cfg.paths; #) cfg.paths;
}; };
}; };