switch-prebuilt: use nix build instead of nix copy to use cache.nixos.org
This commit is contained in:
parent
43e8e05e7b
commit
2ee3044113
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ pkgs.writeShellScriptBin "switch-prebuilt" ''
|
||||||
|
|
||||||
if [[ ! -e "$system" ]]; then
|
if [[ ! -e "$system" ]]; then
|
||||||
# We should be a trusted-user.
|
# 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
|
fi
|
||||||
|
|
||||||
diff "$system/etc/hostname" "/etc/hostname"
|
diff "$system/etc/hostname" "/etc/hostname"
|
||||||
|
|
Loading…
Reference in a new issue