auto: bootstrapping sparky

This commit is contained in:
Sam 2024-05-26 14:32:19 +01:00
parent 6a8c8a98c4
commit f94ab6584e
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": 1716729565, "lastModified": 1716730332,
"narHash": "sha256-ubpkD1U0ZNNREFo8XSh3M/arcQZKgNXiTq1cSNijQ+U=", "narHash": "sha256-KUdQWCCJkTctzdkADAAp4EdNCVKLDoshcHxnIvMnOrw=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "66fef743001650925899d14cdd9ef28825428c93", "rev": "d335a49209f735f6cdb472bd8f4ad4ea84645845",
"revCount": 46, "revCount": 47,
"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

@ -63,7 +63,7 @@ sed -i "{
just update-sops-secrets && just update-flake-secrets && just update-flake just update-sops-secrets && just update-flake-secrets && just update-flake
# Extract luks key from secrets # Extract luks key from secrets
luks_secret=$(nix-shell -p sops --run "SOPS_AGE_KEY_FILE=~/.config/sops/age/keys.txt sops -d --extract '[""\"passwords""\"][""\"root""\"]' ../nix-secrets/secrets.yaml") luks_secret=$(nix-shell -p sops --run "SOPS_AGE_KEY_FILE=~/.config/sops/age/keys.txt sops -d --extract '[""\"luks_passphrase""\"][""\"sparky""\"]' ../nix-secrets/secrets.yaml")
echo "$luks_secret" > /tmp/luks_secret.key echo "$luks_secret" > /tmp/luks_secret.key
# Install Nixos to target # Install Nixos to target