summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-11-28 13:06:05 -0600
committerTim Keller <tjk@tjkeller.xyz>2026-11-28 13:06:05 -0600
commit74a6fc524b02b51f4c3a1422aaad2667256bf043 (patch)
treec1c86a1d185754734441192908dd058c3694e77b
parent810a079dac3a5b58af97c27669d7c15332b16878 (diff)
downloadnixos-master.tar.xz
nixos-master.zip
add note to rebuild script reminding user to make their private key available at a configured sops keypathHEADmaster
-rwxr-xr-xrebuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/rebuild b/rebuild
index a9b63e3..44cbf2d 100755
--- a/rebuild
+++ b/rebuild
@@ -5,6 +5,8 @@ if [ ! -f ~/.config/sops/age/keys.txt ]; then
echo "| WARNING: Sops key not found. Please generate one from your ssh key using the following command: |"
echo "| nix run nixpkgs#ssh-to-age -- -private-key -i ~/.ssh/private > ~/.config/sops/age/keys.txt |"
echo "| cat ~/.config/sops/age/keys.txt | age-keygen -y # Public key |"
+ echo "| IMPORTANT: Ensure your private key is available at a configured keypath for secret decryption: |"
+ echo "| sudo cp ~/.ssh/private /root/.ssh # When using an age key generated from your ssh key |"
echo "---------------------------------------------------------------------------------------------------"
fi
nixos-rebuild switch --sudo --flake "$(dirname "$0")/#$(hostname)" $@