about summary refs log tree commit diff
path: root/users/flokli/nixos/default.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-30T10·05+0200
committerclbot <clbot@tvl.fyi>2023-10-30T12·15+0000
commitf9323d5aa596d72814303db246a046ab1434b466 (patch)
tree9aa987211bedfb124d6f3f484cd517add9e3c931 /users/flokli/nixos/default.nix
parentd83b574be7b83ce5e86784f3ab7054f7b9451a37 (diff)
feat(users/flokli): use nix-copy-closure instead of nix copy r/6911
nix copy seems to stall on the EC2 box for unknown reasons.

Change-Id: I30639a52758814968d3b54d716522fb88db80cfe
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9839
Reviewed-by: flokli <flokli@flokli.de>
Reviewed-by: edef <edef@edef.eu>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'users/flokli/nixos/default.nix')
-rw-r--r--users/flokli/nixos/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/flokli/nixos/default.nix b/users/flokli/nixos/default.nix
index ef035480450b..73b8e6f036db 100644
--- a/users/flokli/nixos/default.nix
+++ b/users/flokli/nixos/default.nix
@@ -6,7 +6,7 @@ let
   # assumes `name` is configured appropriately in your .ssh/config
   deployScript = name: sys: pkgs.writeShellScriptBin "deploy-${name}" ''
     set -eo pipefail
-    nix copy --no-check-sigs --to ssh-ng://${name} ${sys}
+    nix-copy-closure --to ${name} --gzip --use-substitutes ${sys}
     ssh ${name} nix-env --profile /nix/var/nix/profiles/system --set ${sys}
     ssh ${name} ${sys}/bin/switch-to-configuration switch
   '';