From 5641b06f7b3f2d600da22b9f362b75abd2ff7190 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 6 Dec 2020 16:59:11 +0100 Subject: [PATCH] Add simple deploy hook --- deploy.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..d1b336d --- /dev/null +++ b/deploy.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +DEPLOY_HOST=$1 +DEPLOY_ADDRESS=$2 + +nixos-rebuild switch \ + --target-host=${DEPLOY_ADDRESS} \ + --build-host=localhost \ + -I nixos-config=hosts/${DEPLOY_HOST}/configuration.nix \ + --use-remote-sudo