summaryrefslogtreecommitdiff
path: root/rebuild
diff options
context:
space:
mode:
Diffstat (limited to 'rebuild')
-rwxr-xr-xrebuild1
1 files changed, 1 insertions, 0 deletions
diff --git a/rebuild b/rebuild
index cb92b80..a9b63e3 100755
--- a/rebuild
+++ b/rebuild
@@ -4,6 +4,7 @@ if [ ! -f ~/.config/sops/age/keys.txt ]; then
echo "---------------------------------------------------------------------------------------------------"
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 "---------------------------------------------------------------------------------------------------"
fi
nixos-rebuild switch --sudo --flake "$(dirname "$0")/#$(hostname)" $@