From fffc6fa5f94dfa24660ba1882cbe432cb17f89d5 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 2 May 2025 13:03:54 +0300 Subject: [PATCH] nix: add `log_format` option to the module --- nix/module.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix/module.nix b/nix/module.nix index 75adc4f..03bb4e7 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -30,6 +30,7 @@ self: { config_dir = "${cfg.stateDir}/conf"; cache_dir = cfg.cacheDir; disable_metrics = cfg.disableMetrics; + log_format = cfg.logFormat; }); in { ###### interface @@ -134,6 +135,12 @@ in { description = "Logging level for the Eris service."; }; + logFormat = mkOption { + type = enum ["plain" "pretty" "json" "pretty-json"]; + default = "pretty"; + description = "Logging format for Eris."; + }; + user = mkOption { type = str; default = "eris";