switch-prebuilt: use nix build instead of nix copy to use cache.nixos.org

This commit is contained in:
Luke Granger-Brown 2021-04-17 23:55:31 +00:00
parent 43e8e05e7b
commit 2ee3044113

View file

@ -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"