add log directory to nix module
All checks were successful
CI / checks (push) Successful in 41s

This commit is contained in:
Robin Appelman 2026-11-15 16:39:52 +01:00
commit 8c8a1bc303
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE

View file

@ -25,6 +25,11 @@ in {
description = "file containg RAW_DATABASE_URL variable"; description = "file containg RAW_DATABASE_URL variable";
}; };
logDirectory = mkOption {
type = types.str;
description = "path containing the raw logs";
};
logLevel = mkOption { logLevel = mkOption {
type = types.str; type = types.str;
default = "info,sqlx=warn"; default = "info,sqlx=warn";
@ -42,6 +47,7 @@ in {
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
environment = { environment = {
RUST_LOG = cfg.logLevel; RUST_LOG = cfg.logLevel;
LOG_DIRECTORY = cfg.logDirectory;
}; };
serviceConfig = { serviceConfig = {