task | add vps target for nixos-anywhere
This commit is contained in:
parent
90f4982bd8
commit
abaa3e37aa
1 changed files with 3 additions and 2 deletions
|
|
@ -34,9 +34,10 @@ do
|
|||
done
|
||||
ssh-keygen -R ${ip}
|
||||
ssh -o StrictHostKeyChecking=accept-new root@${ip} nixos-generate-config
|
||||
scp root@${ip}:/etc/nixos/hardware-configuration.nix hosts/${host}/hardware-configuration.nix
|
||||
git add hosts/${host}/hardware-configuration.nix
|
||||
# scp root@${ip}:/etc/nixos/hardware-configuration.nix hosts/${host}/hardware-configuration.nix
|
||||
# git add hosts/${host}/hardware-configuration.nix
|
||||
# nixos-rebuild switch --flake .#${host} --target-host root@${ip}
|
||||
read -p 'remove iso from target' foo
|
||||
colmena apply --on ${host}
|
||||
sleep 5
|
||||
until ping -c1 ${ip}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue