diff options
| -rwxr-xr-x | nixos-update.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos-update.sh b/nixos-update.sh index d8a3750..8919a99 100755 --- a/nixos-update.sh +++ b/nixos-update.sh @@ -4,6 +4,5 @@ set -Eeuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" -envsubst < vps-configuration.env.nix | ssh "$TLD" 'cat > /tmp/tmp.nix' -echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S mv /tmp/tmp.nix /etc/nixos/configuration.nix +cat <(echo "${USER_PASSWORD}") <(envsubst < vps-configuration.env.nix) | ssh "$TLD" sudo -S 'cat > /etc/nixos/configuration.nix' echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S -i nixos-rebuild switch --upgrade |
