fix: add --extra-experimental-features nix-command flakes to nix profile add

This commit is contained in:
mozempk
2026-04-23 14:57:40 +02:00
parent 2b866d2c8f
commit a63446a832

View File

@@ -75,7 +75,8 @@ if [[ -n "${NIX_PACKAGES_PREBAKE:-}" ]]; then
export NIXPKGS_ALLOW_UNFREE=1 export NIXPKGS_ALLOW_UNFREE=1
echo " nix profile install: ${_NIX_PKGS[*]}" 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 # Save the profile store path so we can restore from cache next time
readlink -f /root/.nix-profile > "$_NIX_CACHE/.profile-path" readlink -f /root/.nix-profile > "$_NIX_CACHE/.profile-path"