diff options
Diffstat (limited to 'nix/module.nix')
| -rw-r--r-- | nix/module.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nix/module.nix b/nix/module.nix index cfac0fc..799ae2d 100644 --- a/nix/module.nix +++ b/nix/module.nix | |||
| @@ -237,6 +237,19 @@ let | |||
| 237 | ''; | 237 | ''; |
| 238 | }; | 238 | }; |
| 239 | 239 | ||
| 240 | eventBlacklist = mkOption { | ||
| 241 | type = types.listOf types.str; | ||
| 242 | default = [ ]; | ||
| 243 | example = [ "npub1spam..." "npub1abuser..." ]; | ||
| 244 | description = '' | ||
| 245 | Event blacklist for blocking all events from specific authors (npubs). | ||
| 246 | Takes precedence over ALL other validation (checked first). | ||
| 247 | ALL events from these authors are rejected from relay storage and purgatory. | ||
| 248 | Applies to announcements, state events, PRs, and all other event types. | ||
| 249 | Does not affect NIP-11 metadata (operational, not curation policy). | ||
| 250 | ''; | ||
| 251 | }; | ||
| 252 | |||
| 240 | user = mkOption { | 253 | user = mkOption { |
| 241 | type = types.str; | 254 | type = types.str; |
| 242 | default = "ngit-grasp-${name}"; | 255 | default = "ngit-grasp-${name}"; |
| @@ -281,6 +294,7 @@ let | |||
| 281 | NGIT_ARCHIVE_WHITELIST = concatStringsSep "," cfg.archiveWhitelist; | 294 | NGIT_ARCHIVE_WHITELIST = concatStringsSep "," cfg.archiveWhitelist; |
| 282 | NGIT_REPOSITORY_WHITELIST = concatStringsSep "," cfg.repositoryWhitelist; | 295 | NGIT_REPOSITORY_WHITELIST = concatStringsSep "," cfg.repositoryWhitelist; |
| 283 | NGIT_REPOSITORY_BLACKLIST = concatStringsSep "," cfg.repositoryBlacklist; | 296 | NGIT_REPOSITORY_BLACKLIST = concatStringsSep "," cfg.repositoryBlacklist; |
| 297 | NGIT_EVENT_BLACKLIST = concatStringsSep "," cfg.eventBlacklist; | ||
| 284 | RUST_LOG = cfg.logLevel; | 298 | RUST_LOG = cfg.logLevel; |
| 285 | } // optionalAttrs (cfg.relayName != null) { | 299 | } // optionalAttrs (cfg.relayName != null) { |
| 286 | NGIT_RELAY_NAME = cfg.relayName; | 300 | NGIT_RELAY_NAME = cfg.relayName; |