immich: +bind-paths

This commit is contained in:
2024-10-01 14:36:41 +03:00
parent f3efc4299a
commit 121fb237a7
2 changed files with 69 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ let
];
text = ''
set -x
mkdir -p /var/run/immich/bind-paths
${lib.concatMapStringsSep "\n"
(name: ''
mkdir /data/${name}
@@ -53,10 +54,7 @@ in
'';
systemd = {
tmpfiles.rules = [
"d /data 0755 root root -"
"d /var/run/immich/bind-paths 0755 ${immich-user} ${immich-group} -"
];
tmpfiles.rules = [ "d /data 0755 root root -" ];
services.immich-server.serviceConfig = {
RuntimeDirectory = "immich";
TemporaryFileSystem = "/data";