nix-config/modules/immich/default.nix

27 lines
680 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"
];
2024-11-12 18:30:19 -05:00
services.immich = {
enable = true;
package = pkgs.unstable.immich;
host = "localhost";
port = 2283;
mediaLocation = "/lagoon/media/immich";
environment = {
IMMICH_LOG_LEVEL = "log";
2024-11-10 17:54:08 -05:00
};
};
2024-11-12 18:30:19 -05:00
services.postgresql.package = pkgs.unstable.postgresql;
2024-11-10 17:54:08 -05:00
services.caddy.virtualHosts."photographs.tdback.net".extraConfig = ''
encode zstd gzip
reverse_proxy http://localhost:2283
'';
}