auto: bootstrapping sparky

This commit is contained in:
Sam 2024-05-26 20:45:22 +01:00
parent 0c3ec14949
commit 20cbdc28b6
2 changed files with 5 additions and 5 deletions

View File

@ -228,11 +228,11 @@
"nix-secrets": { "nix-secrets": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1716751916, "lastModified": 1716752717,
"narHash": "sha256-LLz5/EHi6C6maUzsrECPnnyIXg+3fLWLxVYu1rrj0D8=", "narHash": "sha256-+y4Md2XbsFekQngnEAeW3vUuzsEu6c13gXGF66RHwKE=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "3eefbbf2436daa60114ef3a3f613223c0508f036", "rev": "69537cb3c35198fe3e7cff697f4458e64d710bf6",
"revCount": 54, "revCount": 55,
"type": "git", "type": "git",
"url": "ssh://git@git.bitlab21.com/sam/nix-secrets.git" "url": "ssh://git@git.bitlab21.com/sam/nix-secrets.git"
}, },

View File

@ -67,7 +67,7 @@ echo -e "\nNeed to change ownership of temp directories, enter sudo password if
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
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 [ $? != 0 ] && echo "Error installing Nixos" && exit 1
## Delete keys from local known_hosts ## Delete keys from local known_hosts