Skip to content

Commit 357bc7c

Browse files
committed
update nix install
1 parent a91a187 commit 357bc7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nix/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ install_nix() {
2222
fi
2323

2424
echo "Installing Nix..."
25-
# Try Determinate Systems installer first
26-
if ! curl --proto '=https' --tlsv1.2 -L https://install.determinate.systems/nix | sh -s -- install --determinate --no-confirm; then
27-
# Fallback to official installer
28-
if ! curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh -s -- --extra-conf "experimental-features = nix-command flakes"; then
25+
# Try official installer with multi-user mode first
26+
if ! curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh -s -- --daemon --yes --nix-extra-conf-file <(echo "experimental-features = nix-command flakes"); then
27+
# Fallback to single-user mode
28+
if ! curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh -s -- --no-daemon --yes --nix-extra-conf-file <(echo "experimental-features = nix-command flakes"); then
2929
die "Nix installation failed"
3030
fi
3131
fi

0 commit comments

Comments
 (0)