Revert "syncthing: fix vars generator not working with latest Syncthing"

This reverts commit 1f9b44a4ad.
This commit is contained in:
Michael Hoang
2025-10-13 17:06:51 +02:00
parent ec2537d088
commit 1482bd571c

View File

@@ -11,9 +11,7 @@
pkgs.syncthing
];
script = ''
export TMPDIR=/tmp
TEMPORARY=$(mktemp -d)
syncthing generate --config "$out" --data "$TEMPORARY"
syncthing generate --config "$out"
mv "$out"/key.pem "$out"/key
mv "$out"/cert.pem "$out"/cert
cat "$out"/config.xml | grep -oP '(?<=<device id=")[^"]+' | uniq > "$out"/id