forge runner

This commit is contained in:
Robert Perce 2026-01-07 16:37:18 -06:00
parent a2de246571
commit 0fbf1d0cb5
4 changed files with 67 additions and 1 deletions

View file

@ -15,7 +15,7 @@ dump() {
if [ -e "vm-$1.nix" ]; then
sudo cp -f result/vzdump* /mnt/share/proxmox/dump/
elif [ -e "lxc-$1.nix" ]; then
sudo cp -f result/tarball/nixos-system-x86_64-linux.tar.xz "/mnt/share/proxmox/dump/$1.tar.xz"
sudo cp -f result/tarball/nixos-image-lxc-*.tar.xz "/mnt/share/proxmox/template/cache/$1.tar.xz"
fi
}
@ -38,6 +38,11 @@ deploy() {
'nixos-rebuild switch --flake .#'"$1"' --target-host admin@"'"$ip"'" --use-remote-sudo'
}
jump-deploy() {
jump_ip=$(tailscale ip xalicas | head -n1)
env NIX_SSHOPTS="-J robert@$jump_ip" ./Taskfile deploy "$1"
}
ssh() {
command "${2:-mosh}" admin@"$(get-ip "$1")"
}