From 969a9a311d24548c6632ddcdc4f903ffa48c5ca6 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 8 Jun 2025 17:11:30 +0530 Subject: Init commit with shit that does it --- build.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 build.sh (limited to 'build.sh') diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..0d6376f --- /dev/null +++ b/build.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env sh +set -euo pipefail + +SSH_TARGET="bacchus@192.168.0.117" + +config_sync() { + sshpass -p password rsync -r "$SSH_TARGET:~/nixos/flake.lock" . + sshpass -p password rsync -r . "$SSH_TARGET:~/nixos" + # sshpass -p password ssh "$SSH_TARGET" sh -c "nixos-rebuild build --flake 'path:/home/bacchus/nixos#bacchus'" +} + +cmd="$1"; shift; +case "$cmd" in + sync) config_sync ;; + *) echo "foo" && exit 1 ;; +esac + -- cgit v1.3.1