move base data dir

This commit is contained in:
♥ Minnie ♥ 2024-10-16 04:59:59 +08:00
parent 9b13797b9b
commit 999740e7bd
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
15 changed files with 100 additions and 32 deletions

View file

@ -20,7 +20,7 @@
port = 5489;
host = "0.0.0.0";
openFirewall = true;
mediaLocation = "/srv/services/immich/library";
mediaLocation = "/var/lib/immich";
secretsFile = config.age.secrets.immich.path;
database = {
enable = true;
@ -52,4 +52,19 @@
{url = "http://127.0.0.1:${toString config.services.immich.port}";}
];
};
environment.persistence."/persist" = {
directories = [
{
directory = "/var/lib/immich";
user = "immich";
group = "immich";
}
{
directory = "/var/lib/redis-immich";
user = "immich";
group = "immich";
}
];
};
}