Add debug flag
This commit is contained in:
parent
6644582774
commit
37b9b58ab1
|
@ -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?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue