fix: add --extra-experimental-features nix-command flakes to nix profile add
This commit is contained in:
@@ -75,7 +75,8 @@ if [[ -n "${NIX_PACKAGES_PREBAKE:-}" ]]; then
|
||||
|
||||
export NIXPKGS_ALLOW_UNFREE=1
|
||||
echo " nix profile install: ${_NIX_PKGS[*]}"
|
||||
nix profile install --impure "${_NIX_PKGS[@]}" 2>&1
|
||||
nix profile add --extra-experimental-features "nix-command flakes" \
|
||||
--impure "${_NIX_PKGS[@]}" 2>&1
|
||||
|
||||
# Save the profile store path so we can restore from cache next time
|
||||
readlink -f /root/.nix-profile > "$_NIX_CACHE/.profile-path"
|
||||
|
||||
Reference in New Issue
Block a user