blob: cb92b808cd5da0cc24393e2a756d35d03359bfe7 (
plain)
1
2
3
4
5
6
7
8
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)" $@
|