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:
Diffstat (limited to 'nix/module.nix')
-rw-r--r--nix/module.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/nix/module.nix b/nix/module.nix
index 7354ab6..9693358 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -268,9 +268,10 @@ let
268 }; 268 };
269 269
270 maxConnections = mkOption { 270 maxConnections = mkOption {
271 type = types.int; 271 type = types.nullOr types.int;
272 default = 4096; 272 default = null;
273 description = "Maximum total connections to the relay"; 273 description =
274 "Maximum total connections to the relay (default: unlimited, defers to OS/infrastructure limits)";
274 }; 275 };
275 276
276 user = mkOption { 277 user = mkOption {
@@ -337,8 +338,9 @@ let
337 NGIT_REPOSITORY_WHITELIST = concatStringsSep "," cfg.repositoryWhitelist; 338 NGIT_REPOSITORY_WHITELIST = concatStringsSep "," cfg.repositoryWhitelist;
338 NGIT_REPOSITORY_BLACKLIST = concatStringsSep "," cfg.repositoryBlacklist; 339 NGIT_REPOSITORY_BLACKLIST = concatStringsSep "," cfg.repositoryBlacklist;
339 NGIT_EVENT_BLACKLIST = concatStringsSep "," cfg.eventBlacklist; 340 NGIT_EVENT_BLACKLIST = concatStringsSep "," cfg.eventBlacklist;
340 NGIT_MAX_CONNECTIONS = toString cfg.maxConnections;
341 NGIT_LOG_LEVEL = cfg.logLevel; 341 NGIT_LOG_LEVEL = cfg.logLevel;
342 } // optionalAttrs (cfg.maxConnections != null) {
343 NGIT_MAX_CONNECTIONS = toString cfg.maxConnections;
342 } // optionalAttrs (cfg.relayName != null) { 344 } // optionalAttrs (cfg.relayName != null) {
343 NGIT_RELAY_NAME = cfg.relayName; 345 NGIT_RELAY_NAME = cfg.relayName;
344 } // optionalAttrs (cfg.archiveReadOnly != null) { 346 } // optionalAttrs (cfg.archiveReadOnly != null) {