Initial commit, nodes are mostly done, panel is WIP
This commit is contained in:
aloslider committed 2026-11-16 01:01:01 +03:00
commit c11e41669b
71 files changed
+3256

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -euo pipefail
root=$(cd "$(dirname "$0")/.." && pwd)
cd "$root"
source "$root/scripts/select-node.sh"
if [[ $# -ge 1 ]]; then
host=$1
else
host=$(select_node)
fi
age_key="${VPS_AGE_KEY:-$HOME/.config/sops/age/$host-key.txt}"
extra_dir=$(mktemp -d)
trap 'rm -rf "$extra_dir"' EXIT
install -d -m 0700 "$extra_dir/etc/age"
install -m 0600 "$age_key" "$extra_dir/etc/age/key.txt"
nix run github:nix-community/nixos-anywhere -- \
--no-disko-deps \
--flake ".#$host" \
--target-host "root@$host" \
--extra-files "$extra_dir"