From 8c8a1bc303258480eb53740b04de35c48ef97627 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 15 Nov 2026 16:39:52 +0100 Subject: [PATCH] add log directory to nix module --- nix/module.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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 = {