From b20386462afcf97d251efc9d4d7eee3ae615a774 Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Mon, 10 Mar 2025 15:09:17 +0100 Subject: [PATCH] refactor: update Nix installation command to use --no-confirm and simplify pipx ensurepath --- setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 1e1875d..3ae04cf 100755 --- a/setup.sh +++ b/setup.sh @@ -139,7 +139,7 @@ install_nix() { curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix -o install-nix.sh || \ 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" . /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" fi - # ensurepath globally - sudo pipx ensurepath --global || die "Failed to ensure pipx path" + # ensurepath + sudo pipx ensurepath || die "Failed to ensure pipx path" fi }