aboutsummaryrefslogtreecommitdiff
path: root/modules/immich/default.nix
blob: fac75f94b327bca717031a7cd8109fbfafb216fe (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, lib, ... }:
{
  services = {
    # Immich setup
    immich = {
      enable = true;
      openFirewall = false;

      host = "127.0.0.1";
      port = 3010;
    };

    nginx = {
      virtualHosts."photos.internal" = {
        locations."/" = {
          proxyPass = "http://127.0.0.1:3010";
          proxyWebsockets = true;
        };
      };
    };
  };

  hardware.graphics.enable = lib.mkForce true;

  users.users.immich = {
    extraGroups = [ "video" "render" ];
  };
}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.