clanService yggdrasil add vars yggdrasil/yggdrasil-subnet

This commit is contained in:
2025-10-21 15:55:18 +07:00
parent 2eb52251cc
commit b5f3adacd8

View File

@@ -22,6 +22,7 @@
yggdrasil-ip = { yggdrasil-ip = {
secret = false; secret = false;
}; };
yggdrasil-subnet.secret = false;
}; };
runtimeInputs = with pkgs; [ runtimeInputs = with pkgs; [
yggdrasil yggdrasil
@@ -30,6 +31,7 @@
script = '' script = ''
yggdrasil -genconf -json | jq {PrivateKey} > $out/yggdrasil-secret yggdrasil -genconf -json | jq {PrivateKey} > $out/yggdrasil-secret
cat $out/yggdrasil-secret | yggdrasil -useconf -address | tr -d "\n" > $out/yggdrasil-ip cat $out/yggdrasil-secret | yggdrasil -useconf -address | tr -d "\n" > $out/yggdrasil-ip
yggdrasil -useconffile $out/yggdrasil-secret -subnet | tr -d "\n" > $out/yggdrasil-subnet
''; '';
}; };