modify boostrap.sh
This commit is contained in:
parent
2a09f91ddd
commit
d60e28ad17
|
@ -64,7 +64,6 @@ just update-sops-secrets
|
||||||
# Install Nixos to target
|
# Install Nixos to target
|
||||||
cd "$HOME/nixos"
|
cd "$HOME/nixos"
|
||||||
git add . && git commit -m "auto: bootstrapping $hostname" && git push
|
git add . && git commit -m "auto: bootstrapping $hostname" && git push
|
||||||
[ $? != 0 ] && echo "Error commiting current changes" && exit 1
|
|
||||||
|
|
||||||
SHELL=/bin/sh nix run github:nix-community/nixos-anywhere -- --extra-files "$temp" --flake .#"$config" root@"$ip" -i "$HOME/.ssh/id_ed25519"
|
SHELL=/bin/sh nix run github:nix-community/nixos-anywhere -- --extra-files "$temp" --flake .#"$config" root@"$ip" -i "$HOME/.ssh/id_ed25519"
|
||||||
[ $? != 0 ] && echo "Error installing Nixos" && exit 1
|
[ $? != 0 ] && echo "Error installing Nixos" && exit 1
|
||||||
|
|
Loading…
Reference in New Issue