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