From 37b9b58ab1e0061dca7db199c5e07176698b3f5f Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 21 May 2024 11:51:33 -0700 Subject: [PATCH] Add debug flag --- immich-ml-container.nix | 3 +++ 1 file changed, 3 insertions(+) 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? };