all repos — flake @ a7abfba6833aa22d659b81c99a14756acd8953f7

got my cool flake

hosts/ivy/services/immich.nix (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
{ config, ... }:
let
  PORT = config.svports.immich;
in
{
  services.immich = {
    enable = true;
    secretsFile = "/var/secrets/immich";
    port = PORT;
    settings = {
      server = {
        externalDomain = "https://immich.vt3e.cat";
      };
    };
  };

  services.caddy.virtualHosts."immich.vt3e.cat" = {
    extraConfig = ''
      encode zstd gzip
      reverse_proxy localhost:${toString PORT}
    '';
  };
}