vps-arm-2024-12-03-15-47-46
This commit is contained in:
46
services/immich.nix
Normal file
46
services/immich.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user