refactor: update Nix installation command to use --no-confirm and simplify pipx ensurepath
Some checks failed
Nix Format Check / check-format (push) Failing after 37s

This commit is contained in:
Menno van Leeuwen 2025-03-10 15:09:17 +01:00
parent 0f0d67d419
commit b20386462a
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -139,7 +139,7 @@ install_nix() {
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix -o install-nix.sh || \ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix -o install-nix.sh || \
die "Failed to download Nix installer" die "Failed to download Nix installer"
sh install-nix.sh install || die "Failed to install Nix" sh install-nix.sh install --no-confirm || die "Failed to install Nix"
rm install-nix.sh || die "Failed to remove Nix installer" rm install-nix.sh || die "Failed to remove Nix installer"
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || die "Failed to source Nix profile" . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || die "Failed to source Nix profile"
} }
@ -252,8 +252,8 @@ ensure_pipx() {
sudo pacman -S python-pipx || die "Failed to install pipx" sudo pacman -S python-pipx || die "Failed to install pipx"
fi fi
# ensurepath globally # ensurepath
sudo pipx ensurepath --global || die "Failed to ensure pipx path" sudo pipx ensurepath || die "Failed to ensure pipx path"
fi fi
} }