diff options
Diffstat (limited to 'rebuild')
| -rwxr-xr-x | rebuild | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -0,0 +1,10 @@ +#!/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 "| cat ~/.config/sops/age/keys.txt | age-keygen -y # Public key |" + echo "---------------------------------------------------------------------------------------------------" +fi +nixos-rebuild switch --sudo --flake "$(dirname "$0")/#$(hostname)" $@ |
