upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/nix/module.nix
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-23 15:20:59 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-23 15:20:59 +0000
commit113928aa84894ea8f65c247d9987527e792b32a9 (patch)
treeec967d6195d9f7ec4f061449596611afe3a0950f /nix/module.nix
parent26f608e5011b9d1ad6036da75b89272835e69695 (diff)
parente0ad39a489b3398f8208713bf728db0cb11475b0 (diff)
Merge master into 3ca0-announcements-purgatory
Diffstat (limited to 'nix/module.nix')
-rw-r--r--nix/module.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/nix/module.nix b/nix/module.nix
index 4a6fc94..89d58de 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -127,9 +127,14 @@ let
127 }; 127 };
128 128
129 logLevel = mkOption { 129 logLevel = mkOption {
130 type = types.enum [ "trace" "debug" "info" "warn" "error" ]; 130 type = types.str;
131 default = "info"; 131 default = "info";
132 description = "Logging level for RUST_LOG environment variable"; 132 example = "debug";
133 description = ''
134 Logging level for application logging.
135 Can be a simple level (trace, debug, info, warn, error) or a filter expression.
136 Examples: "info", "debug", "ngit_grasp=debug,actix_web=info"
137 '';
133 }; 138 };
134 139
135 syncMaxBackoffSecs = mkOption { 140 syncMaxBackoffSecs = mkOption {
@@ -334,7 +339,7 @@ let
334 NGIT_REPOSITORY_BLACKLIST = concatStringsSep "," cfg.repositoryBlacklist; 339 NGIT_REPOSITORY_BLACKLIST = concatStringsSep "," cfg.repositoryBlacklist;
335 NGIT_EVENT_BLACKLIST = concatStringsSep "," cfg.eventBlacklist; 340 NGIT_EVENT_BLACKLIST = concatStringsSep "," cfg.eventBlacklist;
336 NGIT_MAX_CONNECTIONS = toString cfg.maxConnections; 341 NGIT_MAX_CONNECTIONS = toString cfg.maxConnections;
337 RUST_LOG = cfg.logLevel; 342 NGIT_LOG_LEVEL = cfg.logLevel;
338 } // optionalAttrs (cfg.relayName != null) { 343 } // optionalAttrs (cfg.relayName != null) {
339 NGIT_RELAY_NAME = cfg.relayName; 344 NGIT_RELAY_NAME = cfg.relayName;
340 } // optionalAttrs (cfg.archiveReadOnly != null) { 345 } // optionalAttrs (cfg.archiveReadOnly != null) {