1 2 3 4 5 6 7 8 9 10 11
#!/usr/bin/env nix-shell #!nix-shell -i bash # shellcheck shell=bash set -Eeuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" git crypt unlock direnv allow envsubst < vps-configuration.env.nix | ssh "$TLD" 'cat > /etc/nixos/configuration.nix' ssh "$TLD" sudo nixos-rebuild switch --upgrade