Monorepo for Tangled tangled.org

nix: add `plcUrl` options for `services.{knot,spindle}`

Signed-off-by: Seongmin Lee <git@boltless.me>

boltless.me 6bc06bdf 4342407b

verified
Changed files
+22 -1
nix
+14
nix/modules/knot.nix
··· 111 111 description = "Hostname for the server (required)"; 112 112 }; 113 113 114 + plcUrl = mkOption { 115 + type = types.str; 116 + default = "https://plc.directory"; 117 + description = "atproto PLC directory"; 118 + }; 119 + 120 + jetstreamEndpoint = mkOption { 121 + type = types.str; 122 + default = "wss://jetstream1.us-west.bsky.network/subscribe"; 123 + description = "Jetstream endpoint to subscribe to"; 124 + }; 125 + 114 126 dev = mkOption { 115 127 type = types.bool; 116 128 default = false; ··· 199 211 "KNOT_SERVER_LISTEN_ADDR=${cfg.server.listenAddr}" 200 212 "KNOT_SERVER_DB_PATH=${cfg.server.dbPath}" 201 213 "KNOT_SERVER_HOSTNAME=${cfg.server.hostname}" 214 + "KNOT_SERVER_PLC_URL=${cfg.server.plcUrl}" 215 + "KNOT_SERVER_JETSTREAM_ENDPOINT=${cfg.server.jetstreamEndpoint}" 202 216 "KNOT_SERVER_OWNER=${cfg.server.owner}" 203 217 ]; 204 218 ExecStart = "${cfg.package}/bin/knot server";
+8 -1
nix/modules/spindle.nix
··· 37 37 description = "Hostname for the server (required)"; 38 38 }; 39 39 40 + plcUrl = mkOption { 41 + type = types.str; 42 + default = "https://plc.directory"; 43 + description = "atproto PLC directory"; 44 + }; 45 + 40 46 jetstreamEndpoint = mkOption { 41 47 type = types.str; 42 48 default = "wss://jetstream1.us-west.bsky.network/subscribe"; ··· 119 125 "SPINDLE_SERVER_LISTEN_ADDR=${cfg.server.listenAddr}" 120 126 "SPINDLE_SERVER_DB_PATH=${cfg.server.dbPath}" 121 127 "SPINDLE_SERVER_HOSTNAME=${cfg.server.hostname}" 122 - "SPINDLE_SERVER_JETSTREAM=${cfg.server.jetstreamEndpoint}" 128 + "SPINDLE_SERVER_PLC_URL=${cfg.server.plcUrl}" 129 + "SPINDLE_SERVER_JETSTREAM_ENDPOINT=${cfg.server.jetstreamEndpoint}" 123 130 "SPINDLE_SERVER_DEV=${lib.boolToString cfg.server.dev}" 124 131 "SPINDLE_SERVER_OWNER=${cfg.server.owner}" 125 132 "SPINDLE_SERVER_MAX_JOB_COUNT=${toString cfg.server.maxJobCount}"