From 20cbdc28b69f691d57c58719f8204428c7ccd25f Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 26 May 2024 20:45:22 +0100 Subject: [PATCH] auto: bootstrapping sparky --- flake.lock | 8 ++++---- scripts/bootstrap.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index a0a62cf..e2fee45 100644 --- a/flake.lock +++ b/flake.lock @@ -228,11 +228,11 @@ "nix-secrets": { "flake": false, "locked": { - "lastModified": 1716751916, - "narHash": "sha256-LLz5/EHi6C6maUzsrECPnnyIXg+3fLWLxVYu1rrj0D8=", + "lastModified": 1716752717, + "narHash": "sha256-+y4Md2XbsFekQngnEAeW3vUuzsEu6c13gXGF66RHwKE=", "ref": "refs/heads/master", - "rev": "3eefbbf2436daa60114ef3a3f613223c0508f036", - "revCount": 54, + "rev": "69537cb3c35198fe3e7cff697f4458e64d710bf6", + "revCount": 55, "type": "git", "url": "ssh://git@git.bitlab21.com/sam/nix-secrets.git" }, diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 8c4b2d6..475e76a 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -67,7 +67,7 @@ echo -e "\nNeed to change ownership of temp directories, enter sudo password if cd "$HOME/nixos" git add . && git commit -m "auto: bootstrapping $hostname" && git push -nix-shell -p nixos-anywhere --run "nixos-anywhere --extra-files ""\"$temp""\" --flake .#""\"$config""\" root@""\"$ip""\" -i ""\"$HOME/.ssh/id_ed25519""\"" +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 ## Delete keys from local known_hosts