refactor: streamline Nix installation process and simplify pipx installation
All checks were successful
Nix Format Check / check-format (push) Successful in 38s
All checks were successful
Nix Format Check / check-format (push) Successful in 38s
This commit is contained in:
parent
c26a952af9
commit
36ebbef6d7
14
setup.sh
14
setup.sh
@ -141,10 +141,6 @@ install_nix() {
|
||||
|
||||
sh install-nix.sh install || die "Failed to install Nix"
|
||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || die "Failed to source Nix profile"
|
||||
|
||||
log_success "Nix has been installed. Please open a new shell and re-run the script."
|
||||
log_info "'~/dotfiles/setup.sh --continue' to continue setup."
|
||||
exit 0
|
||||
}
|
||||
|
||||
setup_symlinks() {
|
||||
@ -248,15 +244,7 @@ ensure_pipx() {
|
||||
if ! command -v pipx >/dev/null 2>&1; then
|
||||
log_info "Installing pipx..."
|
||||
|
||||
# On Fedora/RedHat, install pipx using dnf
|
||||
if command -v dnf >/dev/null 2>&1; then
|
||||
sudo dnf install pipx || die "Failed to install pipx"
|
||||
fi
|
||||
|
||||
# On Ubuntu/Debian, install pipx using apt
|
||||
if command -v apt >/dev/null 2>&1; then
|
||||
sudo apt install pipx || die "Failed to install pipx"
|
||||
fi
|
||||
attempt_package_install "pipx"
|
||||
|
||||
# On Arch Linux, install pipx using pacman
|
||||
if command -v pacman >/dev/null 2>&1; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user