blob: 37eadad45f229e19dfeeb1aa9f81446900fef467 (
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
30
31
32
33
34
35
36
|
{ config, pkgs, ... } @ args:
{
imports = [
"${args.inputs.nixpkgs-master}/nixos/modules/services/web-apps/immich.nix"
];
disabledModules = [ "services/web-apps/immich.nix" ];
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;
package = pkgs.unstable.immich;
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";
# };
# };
};
}
|