aboutsummaryrefslogtreecommitdiff
path: root/nixos-update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nixos-update.sh')
-rwxr-xr-xnixos-update.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos-update.sh b/nixos-update.sh
index 8919a99..856acb4 100755
--- a/nixos-update.sh
+++ b/nixos-update.sh
@@ -5,4 +5,5 @@ set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
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 nix-channel --add "https://nixos.org/channels/nixos-${SYSTEM_STATE_VERSION}" nixos
echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S -i nixos-rebuild switch --upgrade