Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

spindle: expose tap config in nix module

Lewis: May this revision serve well! <lewis@tangled.org>

author
Lewis
committer
Tangled
date (May 12, 2026, 11:59 AM +0300) commit 4d151846 parent ad9d6e45 change-id wzqppskk
+37
+37
nix/modules/spindle.nix
··· 101 101 }; 102 102 }; 103 103 }; 104 + 105 + tap = { 106 + embed = mkOption { 107 + type = types.bool; 108 + default = true; 109 + description = "Run an embedded tap inside the spindle process"; 110 + }; 111 + 112 + url = mkOption { 113 + type = types.str; 114 + default = "http://[::1]:2480"; 115 + description = "URL the spindle's tap client dials"; 116 + }; 117 + 118 + bind = mkOption { 119 + type = types.str; 120 + default = "[::1]:2480"; 121 + description = "Loopback address the embedded tap server listens on"; 122 + }; 123 + 124 + dbPath = mkOption { 125 + type = types.path; 126 + default = "/var/lib/spindle/tap.db"; 127 + description = "Path to the embedded tap sqlite database"; 128 + }; 129 + 130 + relayUrl = mkOption { 131 + type = types.str; 132 + default = "https://bsky.network"; 133 + description = "Relay used by the embedded tap firehose"; 134 + }; 135 + }; 104 136 }; 105 137 106 138 pipelines = { ··· 171 203 "SPINDLE_SERVER_SECRETS_PROVIDER=${cfg.server.secrets.provider}" 172 204 "SPINDLE_SERVER_SECRETS_OPENBAO_PROXY_ADDR=${cfg.server.secrets.openbao.proxyAddr}" 173 205 "SPINDLE_SERVER_SECRETS_OPENBAO_MOUNT=${cfg.server.secrets.openbao.mount}" 206 + "SPINDLE_SERVER_TAP_EMBED=${lib.boolToString cfg.server.tap.embed}" 207 + "SPINDLE_SERVER_TAP_URL=${cfg.server.tap.url}" 208 + "SPINDLE_SERVER_TAP_BIND=${cfg.server.tap.bind}" 209 + "SPINDLE_SERVER_TAP_DB_PATH=${cfg.server.tap.dbPath}" 210 + "SPINDLE_SERVER_TAP_RELAY_URL=${cfg.server.tap.relayUrl}" 174 211 "SPINDLE_NIXERY_PIPELINES_NIXERY=${cfg.pipelines.nixery}" 175 212 "SPINDLE_NIXERY_PIPELINES_WORKFLOW_TIMEOUT=${cfg.pipelines.workflowTimeout}" 176 213 "SPINDLE_NIXERY_PIPELINES_MAX_JOB_MEMORY_MB=${toString cfg.pipelines.maxJobMemoryMb}"