task | nix-anywhere - further fixes
This commit is contained in:
parent
3d6b6ca751
commit
0acb9c52eb
6 changed files with 31 additions and 16 deletions
|
|
@ -25,6 +25,7 @@ fi
|
|||
|
||||
cd ${nixanywhere}
|
||||
ssh-keygen -R ${ip}
|
||||
nix flake update
|
||||
nix run github:nix-community/nixos-anywhere -- --flake .#${host} root@${ip}
|
||||
cd ${nixsrc}
|
||||
sleep 5
|
||||
|
|
@ -36,10 +37,10 @@ do
|
|||
notify-send --urgency=critical --icon=rocket "Log onto ${host} root/changeme and run nmcli if on WiFi"
|
||||
sleep 5
|
||||
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
|
||||
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
|
||||
# nixos-rebuild switch --flake .#${host} --target-host root@${ip}
|
||||
notify-send --urgency=critical --expire-time=0 --icon=cdrom "Remove boot iso"
|
||||
read -p 'remove iso from target' foo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue