Move forge tailnet secrets to agenix

This commit is contained in:
Conrad Kramer 2026-03-31 16:38:02 -07:00
parent 8aebf56d6d
commit 20964e8ed7
9 changed files with 135 additions and 7 deletions

View file

@ -191,7 +191,9 @@ in
set -euo pipefail
list_users() {
${pkgs.headscale}/bin/headscale users list -o json
local users_json
users_json="$(${pkgs.headscale}/bin/headscale users list -o json)"
printf '%s\n' "$users_json" | ${pkgs.jq}/bin/jq -c 'if type == "array" then . else [] end'
}
ensure_user() {