nix-config/modules/immich/default.nix
2024-11-26 21:50:17 -05:00

18 lines
380 B
Nix

{ pkgs, ... }:
{
services.immich = {
enable = true;
package = pkgs.immich;
host = "localhost";
port = 2283;
mediaLocation = "/lagoon/media/immich";
environment = {
IMMICH_LOG_LEVEL = "log";
};
};
services.caddy.virtualHosts."photographs.brownbread.net".extraConfig = ''
encode zstd gzip
reverse_proxy http://localhost:2283
'';
}