From 100ab568e3aeb512e86fd1155a73454d22e24895 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Aug 2020 12:15:49 -0300 Subject: Migration: Remove Ansible and Docker code, move only to NixOS --- nixos-update.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 nixos-update.sh (limited to 'nixos-update.sh') 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 -- cgit v1.2.3