diff --git a/immich-ml-container.nix b/immich-ml-container.nix index 0ce5d1a..5102694 100644 --- a/immich-ml-container.nix +++ b/immich-ml-container.nix @@ -19,6 +19,7 @@ let ports = [ "${toString cfg.port}:3003" ]; restart = "always"; volumes = [ "${cfg.state-directory}:/cache" ]; + env = mkIf cfg.debug { IMMICH_LOG_LEVEL = "debug"; }; }; }); @@ -47,6 +48,8 @@ in { description = ""; }; + debug = mkEnableOption "Enable debugging logs."; + # TODO: maybe have different types? };