nix-config/modules/immich/default.nix

28 lines
703 B
Nix
Raw Normal View History

2024-11-10 17:54:08 -05:00
{ inputs, pkgs, ... }:
{
disabledModules = [ "services/databases/redis.nix" ];
imports = [
"${inputs.nixpkgs-unstable}/nixos/modules/services/web-apps/immich.nix"
"${inputs.nixpkgs-unstable}/nixos/modules/services/databases/redis.nix"
];
services = {
immich = {
enable = true;
package = pkgs.unstable.immich;
host = "localhost";
port = 2283;
mediaLocation = "/lagoon/media/immich";
environment = {
IMMICH_LOG_LEVEL = "log";
};
};
postgresql.package = pkgs.unstable.postgresql;
};
services.caddy.virtualHosts."photographs.tdback.net".extraConfig = ''
encode zstd gzip
reverse_proxy http://localhost:2283
'';
}