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.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nix/module.nix b/nix/module.nix
index 516fb04..d5dfd88 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -207,6 +207,20 @@ let
207 - Repository announcements not listing this service are accepted per whitelist/archive-all 207 - Repository announcements not listing this service are accepted per whitelist/archive-all
208 Default: true if archiveAll or archiveWhitelist is set, false otherwise 208 Default: true if archiveAll or archiveWhitelist is set, false otherwise
209 Note: Setting to true without archive config causes startup error 209 Note: Setting to true without archive config causes startup error
210 Note: Cannot be used with repositoryWhitelist (mutually exclusive)
211 '';
212 };
213
214 repositoryWhitelist = mkOption {
215 type = types.listOf types.str;
216 default = [ ];
217 example = [ "npub1alice..." "npub1bob.../linux" "bitcoin-core" ];
218 description = ''
219 Repository whitelist for GRASP-01 acceptance.
220 Announcements must BOTH list our service AND match this whitelist.
221 Formats: <npub>, <npub>/<identifier>, <identifier>
222 Cannot be used with archiveReadOnly=true (mutually exclusive)
223 When set, NIP-11 curation field indicates curated repository acceptance
210 ''; 224 '';
211 }; 225 };
212 226
@@ -252,6 +266,7 @@ let
252 toString cfg.naughtyListExpirationHours; 266 toString cfg.naughtyListExpirationHours;
253 NGIT_ARCHIVE_ALL = toString cfg.archiveAll; 267 NGIT_ARCHIVE_ALL = toString cfg.archiveAll;
254 NGIT_ARCHIVE_WHITELIST = concatStringsSep "," cfg.archiveWhitelist; 268 NGIT_ARCHIVE_WHITELIST = concatStringsSep "," cfg.archiveWhitelist;
269 NGIT_REPOSITORY_WHITELIST = concatStringsSep "," cfg.repositoryWhitelist;
255 RUST_LOG = cfg.logLevel; 270 RUST_LOG = cfg.logLevel;
256 } // optionalAttrs (cfg.relayName != null) { 271 } // optionalAttrs (cfg.relayName != null) {
257 NGIT_RELAY_NAME = cfg.relayName; 272 NGIT_RELAY_NAME = cfg.relayName;