summaryrefslogtreecommitdiff
path: root/rebuild
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-03-28 14:31:17 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-03-28 14:31:17 -0500
commit63c261391ea77f2d940997a7c403a7426b90ab02 (patch)
tree4eb6a2093d6b865fc213658cdfa9150291e689d6 /rebuild
parentfba387bf6ed132ad7e3b0bdb35617dbc20357c61 (diff)
parent0538c0398cbf338ad1261b1f58a01d3aaed94d50 (diff)
downloadnixos-63c261391ea77f2d940997a7c403a7426b90ab02.tar.xz
nixos-63c261391ea77f2d940997a7c403a7426b90ab02.zip
Merge branch 'master' of 192.168.77.8:nixos
Diffstat (limited to 'rebuild')
-rwxr-xr-xrebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/rebuild b/rebuild
index 91ea7a1..cb92b80 100755
--- a/rebuild
+++ b/rebuild
@@ -1,2 +1,9 @@
#!/bin/sh
+if [ ! -f ~/.config/sops/age/keys.txt ]; then
+ mkdir -p ~/.config/sops/age
+ 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 "---------------------------------------------------------------------------------------------------"
+fi
nixos-rebuild switch --sudo --flake "$(dirname "$0")/#$(hostname)" $@