summaryrefslogtreecommitdiff
path: root/hosts/immich/immich.nix
blob: aa220bf4d1594b14d76e35a662f99ca0df1bded5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, ... }:
{
  sops.secrets."immich.yaml" = {
    sopsFile = ./immich.yaml;
    owner = config.services.immich.user;
    key = "";
  };

  services.immich = {
    enable = true;
    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;
    };
  };
}