From 4f9bbcb47b8b2d08d1dca24dfe778c38d9915dcb Mon Sep 17 00:00:00 2001
From: Jens Nolte <jens@nightmarestudio.de>
Date: Mon, 10 Aug 2020 14:49:13 +0200
Subject: [PATCH] Disable --substitute-on-destination

---
 bin/deploy | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/deploy b/bin/deploy
index c1b055f..a78c412 100755
--- a/bin/deploy
+++ b/bin/deploy
@@ -140,7 +140,8 @@ then
 else
   # remote deploy
 
-  nix copy --substitute-on-destination --file "$MACHINES_PATH" "nixosSystemDerivations.$hostname" --to "ssh://root@$via_hostname"
+  nix copy --file "$MACHINES_PATH" "nixosSystemDerivations.$hostname" --to "ssh://root@$via_hostname"
+  #nix copy --substitute-on-destination --file "$MACHINES_PATH" "nixosSystemDerivations.$hostname" --to "ssh://root@$via_hostname"
 
   # The manual way to do it (this is in theory also supported by nixos-rebuild by using '-I')
 
-- 
GitLab