vps-arm-2024-12-03-15-47-46

This commit is contained in:
Alexander Szczepanski
2024-12-03 15:47:46 +01:00
parent db0bc6a35d
commit 8526b26523
8 changed files with 57 additions and 23 deletions

46
services/immich.nix Normal file
View File

@ -0,0 +1,46 @@
{
config,
lib,
pkgs,
...
}: {
environment = {
persistence."/persist" = {
directories = [
"/var/lib/immich"
"/var/lib/redis-immich"
];
};
};
services = {
nginx = {
virtualHosts = {
"immich.szczepan.ski" = {
forceSSL = true;
enableACME = true;
locations = {"/" = {proxyPass = "http://[::1]:2283/";};};
};
};
};
# postgresql = {
# enable = true;
# ensureDatabases = [
# config.services.nextcloud.config.dbname
# ];
# ensureUsers = [
# {
# name = config.services..config.dbuser;
# ensureDBOwnership = true;
# # ensurePermissions."DATABASE ${config.services.gitea.database.name}" = "ALL PRIVILEGES";
# }
# ];
# };
immich = {
enable = true;
settings.server.externalDomain = "https://immich.szczepan.ski";
};
};
}