radiobert: fix feed-chaos-consulting

This commit is contained in:
Astro 2021-12-30 00:57:48 +01:00
parent e2344bf4b4
commit 3c1bb32b9c
1 changed files with 7 additions and 1 deletions

View File

@ -86,7 +86,13 @@ in {
};
path = with pkgs; [ curl gzip ];
script = ''
while curl -s http://localhost:8080/data.json \
while (
echo '{"now":'
date +%s
echo ',"aircraft":'
curl -s http://localhost:8080/data.json
echo '}'
) \
| gzip -c \
| curl -s \
-u "$(cat ${config.sops.secrets."chaos-consulting/user".path})" \