Monorepo for Tangled tangled.org

nix: knot: pass config to `knot guard`

this is a temporary fix. ideal solution would be introducing json file
configuration or serving ssh server by our own instead of relying on
sshd

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

boltless.me 26f5860a 1d9c1134

verified
Changed files
+13
nix
modules
+13
nix/modules/knot.nix
··· 157 157 ''; 158 158 }; 159 159 160 + # TODO: abstract this to share same env table with systemd.services.knot 161 + environment.variables = { 162 + "KNOT_REPO_SCAN_PATH" = cfg.repo.scanPath; 163 + "KNOT_REPO_MAIN_BRANCH" = cfg.repo.mainBranch; 164 + "APPVIEW_ENDPOINT" = cfg.appviewEndpoint; 165 + "KNOT_SERVER_INTERNAL_LISTEN_ADDR" = cfg.server.internalListenAddr; 166 + "KNOT_SERVER_LISTEN_ADDR" = cfg.server.listenAddr; 167 + "KNOT_SERVER_DB_PATH" = cfg.server.dbPath; 168 + "KNOT_SERVER_HOSTNAME" = cfg.server.hostname; 169 + "KNOT_SERVER_PLC_URL" = cfg.server.plcUrl; 170 + "KNOT_SERVER_JETSTREAM_ENDPOINT" = cfg.server.jetstreamEndpoint; 171 + "KNOT_SERVER_OWNER" = cfg.server.owner; 172 + }; 160 173 environment.etc."ssh/keyfetch_wrapper" = { 161 174 mode = "0555"; 162 175 text = ''