From 6a8c8a98c47716cb2a5fb41b641de128223a59d3 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 26 May 2024 14:19:32 +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 f294d97..9ad97ef 100644 --- a/flake.lock +++ b/flake.lock @@ -228,11 +228,11 @@ "nix-secrets": { "flake": false, "locked": { - "lastModified": 1716729487, - "narHash": "sha256-mf+lK/G5cuJjXlsBTlLpOqBw7Qx+H1ZQ8x4MohX6OO8=", + "lastModified": 1716729565, + "narHash": "sha256-ubpkD1U0ZNNREFo8XSh3M/arcQZKgNXiTq1cSNijQ+U=", "ref": "refs/heads/master", - "rev": "36900f87c79f7b63a39b7c134963c5c17063a616", - "revCount": 45, + "rev": "66fef743001650925899d14cdd9ef28825428c93", + "revCount": 46, "type": "git", "url": "ssh://git@git.bitlab21.com/sam/nix-secrets.git" }, diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 577afbf..a9dc986 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -70,7 +70,7 @@ echo "$luks_secret" > /tmp/luks_secret.key cd "$HOME/nixos" git add . && git commit -m "auto: bootstrapping $hostname" && git push -SHELL=/bin/sh nix run github:nix-community/nixos-anywhere -- --extra-files "$temp_ssh" --disk-encryption-keys /tmp/luks_secret.key --flake .#"$config" root@"$ip" -i "$HOME/.ssh/id_ed25519" +SHELL=/bin/sh nix run github:nix-community/nixos-anywhere -- --extra-files "$temp_ssh" --disk-encryption-keys /tmp/luks_secret.key /tmp/luks_secret.key --flake .#"$config" root@"$ip" -i "$HOME/.ssh/id_ed25519" [ $? != 0 ] && echo "Error installing Nixos" && exit 1 ## Delete keys from local known_hosts