summaryrefslogtreecommitdiffstats
path: root/infest-cac-CentOS-7-64bit.sh
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-06-24 20:00:52 +0200
committertv <tv@shackspace.de>2015-06-24 20:00:52 +0200
commit0fa8921e803876d85e1a0d49d925c2919714ee56 (patch)
treeef5cd237fc110842e64cc3ecf889093d1f63b365 /infest-cac-CentOS-7-64bit.sh
parentbea25b5640e72a64605406b40f3cbcf5d0c6c9de (diff)
infest-cac-CentOS-7-64bit: fetchgit
Diffstat (limited to 'infest-cac-CentOS-7-64bit.sh')
-rwxr-xr-xinfest-cac-CentOS-7-64bit.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/infest-cac-CentOS-7-64bit.sh b/infest-cac-CentOS-7-64bit.sh
index 32090ae9e..0f2efae6b 100755
--- a/infest-cac-CentOS-7-64bit.sh
+++ b/infest-cac-CentOS-7-64bit.sh
@@ -4,6 +4,19 @@ set -xeuf
serverspec=$1
systemname=$2
+(
+ # Notice NIX_PATH used from host
+ # Notice secrets required to evaluate configuration
+ NIX_PATH=$NIX_PATH:nixos-config=$PWD/modules/$systemname
+ NIX_PATH=$NIX_PATH:secrets=$PWD/secrets/$systemname/nix
+ export NIX_PATH
+
+ rev=$(newbin/nixos-query nixpkgs.rev)
+ url=$(newbin/nixos-query nixpkgs.url)
+
+ newbin/fetchgit "$rev" "$url" tmp/nixpkgs/$systemname
+)
+
./cac poll 10s 2>/dev/null &
pollpid=$!
trap "kill $pollpid; trap - EXIT" EXIT