Add debug flag

This commit is contained in:
niten 2024-05-21 11:51:33 -07:00
parent 6644582774
commit 37b9b58ab1
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ let
ports = [ "${toString cfg.port}:3003" ]; ports = [ "${toString cfg.port}:3003" ];
restart = "always"; restart = "always";
volumes = [ "${cfg.state-directory}:/cache" ]; volumes = [ "${cfg.state-directory}:/cache" ];
env = mkIf cfg.debug { IMMICH_LOG_LEVEL = "debug"; };
}; };
}); });
@ -47,6 +48,8 @@ in {
description = ""; description = "";
}; };
debug = mkEnableOption "Enable debugging logs.";
# TODO: maybe have different types? # TODO: maybe have different types?
}; };