all repos — flake @ main

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 = config.age.secrets.ivy-immich.path;
    port = PORT;
    settings = {
      server = {
        externalDomain = "https://immich.vt3e.cat";
      };
    };
  };

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