Skip to content

Commit 29e6123

Browse files
committed
[DDW-1083] Add extra-experimental-features nix-command to the Ubuntu installer
1 parent 9024f33 commit 29e6123

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

installers/nix/nix-installer.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let
5050
echo PROG 3/6
5151
NIX_REMOTE=local?root=$UNPACK2 nix-store --load-db < $UNPACK2/nix-path-registration
5252
NIX_REMOTE=local?root=$UNPACK2 nix-store --verify --check-contents
53-
nix copy --no-check-sigs --from local?root=$UNPACK2 $(readlink $UNPACK2/firstGeneration)
53+
nix --extra-experimental-features nix-command copy --no-check-sigs --from local?root=$UNPACK2 $(readlink $UNPACK2/firstGeneration)
5454
export NIX_PROFILE=/nix/var/nix/profiles/profile
5555
nix-env --set $(readlink $UNPACK2/firstGeneration)
5656
nix-env -p /nix/var/nix/profiles/profile-${linuxClusterBinName} --set $(readlink $UNPACK2/firstGeneration)
@@ -151,10 +151,10 @@ let
151151
pwd
152152
NIX_REMOTE=local?root=$UNPACK nix-store --verify --check-contents -v
153153
# turn back on some time later?
154-
# NIX_REMOTE=local?root=$UNPACK nix copy-sigs --all -s http://cache.nixos.org/
154+
# NIX_REMOTE=local?root=$UNPACK nix --extra-experimental-features nix-command copy-sigs --all -s http://cache.nixos.org/
155155
156156
export NIX_REMOTE=local?root=$DIR
157-
nix copy --no-check-sigs --from local?root=$UNPACK ${builtins.unsafeDiscardStringContext firstGeneration}
157+
nix --extra-experimental-features nix-command copy --no-check-sigs --from local?root=$UNPACK ${builtins.unsafeDiscardStringContext firstGeneration}
158158
rmrf $UNPACK
159159
unset UNPACK
160160
export NIX_PROFILE=$DIR/nix/var/nix/profiles/profile

0 commit comments

Comments
 (0)