auto: bootstrapping sparky
This commit is contained in:
parent
cf831cee04
commit
0c3ec14949
|
@ -228,11 +228,11 @@
|
|||
"nix-secrets": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1716751860,
|
||||
"narHash": "sha256-n3Z0B0UtG9t7DIIdm+q7/nts0tL0nlZZXT0xoMME9+4=",
|
||||
"lastModified": 1716751916,
|
||||
"narHash": "sha256-LLz5/EHi6C6maUzsrECPnnyIXg+3fLWLxVYu1rrj0D8=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "2786cfc98337e78861ae63089749caeae1ece421",
|
||||
"revCount": 53,
|
||||
"rev": "3eefbbf2436daa60114ef3a3f613223c0508f036",
|
||||
"revCount": 54,
|
||||
"type": "git",
|
||||
"url": "ssh://git@git.bitlab21.com/sam/nix-secrets.git"
|
||||
},
|
||||
|
|
|
@ -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-shell -p nixos-anywhere --run "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
|
||||
|
|
Loading…
Reference in New Issue