From 2ee3044113a9331fd10a30cf6f60629f740f51c1 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 17 Apr 2021 23:55:31 +0000 Subject: [PATCH] switch-prebuilt: use nix build instead of nix copy to use cache.nixos.org --- ops/nixos/lib/switch-prebuilt.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/nixos/lib/switch-prebuilt.nix b/ops/nixos/lib/switch-prebuilt.nix index 8e4620fdb2..92c54643cc 100644 --- a/ops/nixos/lib/switch-prebuilt.nix +++ b/ops/nixos/lib/switch-prebuilt.nix @@ -21,7 +21,7 @@ pkgs.writeShellScriptBin "switch-prebuilt" '' if [[ ! -e "$system" ]]; then # We should be a trusted-user. - nix copy -v --from 's3://lukegb-nix-cache?endpoint=storage.googleapis.com' --no-check-sigs "$system" + nix build -v "$system" fi diff "$system/etc/hostname" "/etc/hostname"