blob: b251b7aa27b13dbf19e2d48d2a2b44eef35d7240 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ config, ... }:
{
services.nginx.virtualHosts."photo.emile.space" = {
forceSSL = true;
enableACME = true;
locations = {
"/" = {
proxyPass = "http://${config.services.immich.host}:${toString config.services.immich.port}";
};
};
};
services.immich = {
enable = true;
mediaLocation = "/var/lib/immich";
secretsFile = config.age.secrets.immich_secrets_file.path;
host = "127.0.0.1";
port = config.emile.ports.immich;
# machine-learning = {
# enable = true;
# environment = {
# MACHINE_LEARNING_MODEL_TTL = "600";
# };
# };
};
}
|