nix-config/hosts/immich/immich.nix

20 lines
467 B
Nix
Raw Normal View History

2025-01-21 17:39:25 +00:00
{ config, ... }:
{
sops.secrets."immich.yaml" = {
sopsFile = ./immich.yaml;
owner = config.services.immich.user;
key = "";
};
services.immich = {
enable = true;
host = "10.89.88.13";
redis.enable = true;
database.createDB = true;
settings = null; # has to contain secrets https://github.com/immich-app/immich/discussions/14815
environment = {
IMMICH_CONFIG_FILE = config.sops.secrets."immich.yaml".path;
};
};
}