diff options
Diffstat (limited to 'nixos-update.sh')
-rwxr-xr-x | nixos-update.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos-update.sh b/nixos-update.sh new file mode 100755 index 0000000..7db0bf8 --- /dev/null +++ b/nixos-update.sh @@ -0,0 +1,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/vps-configuration.nix' +ssh "$TLD" sudo nixos-rebuild switch --upgrade |