Compare commits

...

2 commits

Author SHA1 Message Date
Fabian Montero 3fefd5b072
apply formatter 2025-01-23 13:16:29 -06:00
Fabian Montero 9636646eb4
vps: add immich 2025-01-23 13:15:59 -06:00
3 changed files with 35 additions and 1 deletions

View file

@ -17,5 +17,6 @@ with lib; {
./syncthing.nix
./shiori.nix
./calibre-web.nix
./immich.nix
];
}

View file

@ -0,0 +1,33 @@
{
lib,
pkgs,
...
}:
with lib; {
services = {
nginx = {
virtualHosts."photos.posixlycorrect.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
'';
locations."/" = {
proxyPass = "http://localhost:2283";
};
};
};
immich = {
enable = true;
secretsFile = "/var/trust/immich/secrets.txt";
openFirewall = true;
mediaLocation = "/mnt/export2178/immich/media";
machine-learning.enable = false;
environment = {
IMMICH_TELEMETRY_EXCLUDE = "host,api,io,repo,job";
};
};
};
}

View file

@ -15,7 +15,7 @@ with lib; {
settings.options.urAccepted = -1;
relay = {
enable = true;
pools = [ ];
pools = [];
providedBy = "vps.posixlycorrect.com";
};
};