This repository has no description
0

Configure Feed

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

superconfig / tools / get-spora-hosts.nix
630 B 22 lines
1{ self, ... }: 2{ 3 perSystem = 4 { system, pkgs, ... }: 5 { 6 packages.get-spora-hosts = pkgs.writeScriptBin "get-spora-hosts" '' 7 set -eu 8 set -o pipefail 9 set -x 10 OUTDIR=$1 11 for host in ${self}/machines/*; do 12 if test -e "$host"/facts/mycelium_pubkey; then 13 if ! test -e "$OUTDIR"/"$(basename "$host")".json; then 14 ${ 15 self.packages.${pkgs.system}.mycelium 16 }/bin/mycelium inspect "$(cat "$host"/facts/mycelium_pubkey)" --json > "$OUTDIR/$(basename "$host").json" 17 fi 18 fi 19 done 20 ''; 21 }; 22}