blob: 40243ae1ee45e87e37a295d27367375bc67958f7 (
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
|
{
config,
inputs,
pkgs,
...
}:
let
immich-latest = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.immich;
in
{
sops.secrets."immich.yaml" = {
sopsFile = ./immich.yaml;
owner = config.services.immich.user;
key = "";
};
services.immich = {
enable = true;
package = immich-latest;
host = "10.89.88.13";
redis.enable = true;
database.createDB = true;
settings = null; # has to contain secrets https://github.com/immich-app/immich/discussions/14815
environment = {
IMMICH_CONFIG_FILE = config.sops.secrets."immich.yaml".path;
};
};
}
|