Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer woes #12368

Open
4 tasks
kevin-ledezma opened this issue Jan 27, 2025 · 2 comments
Open
4 tasks

Installer woes #12368

kevin-ledezma opened this issue Jan 27, 2025 · 2 comments

Comments

@kevin-ledezma
Copy link

Platform

  • Linux:
  • [ X] macOS
  • WSL

Additional information

I am trying to reinstall Nix but I am having a lot of issues. I raised an issue last week but was pointed to another comment as mine was duplicative but now am getting this error when I try to curl.

Output

Output

sudo cp /etc/bashrc /etc/bashrc.bak
sudo cp /etc/bashrc.backup-before-nix /etc/bashrc.backup-before-nix.bak

sudo cp /etc/bashrc.backup-before-nix /etc/bashrc.backup-before-nix.bak

cp: /etc/bashrc.backup-before-nix: No such file or directory
sudo vim /etc/bashrc.backup-before-nix

sudo mv /etc/bashrc.backup-before-nix /etc/bashrc

I back up shell profile/rc scripts before I add Nix to them.
I need to back up /etc/zshrc to /etc/zshrc.backup-before-nix,
but the latter already exists.

Here's how to clean up the old backup file:

  1. Back up (copy) /etc/zshrc and /etc/zshrc.backup-before-nix
    to another location, just in case.

  2. Ensure /etc/zshrc.backup-before-nix does not have anything
    Nix-related in it. If it does, something is probably quite
    wrong. Please open an issue or get in touch immediately.

System-wide profile for interactive zsh(1) shells.

Setup user specific overrides for this in ~/.zshrc. See zshbuiltins(1)

and zshoptions(1) for more details.

Correctly display UTF-8 with combining characters.

if [[ "$(locale LC_CTYPE)" == "UTF-8" ]]; then
setopt COMBINING_CHARS
fi

Disable the log builtin, so we don't conflict with /usr/bin/log

disable log

Save command history

HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
HISTSIZE=2000
SAVEHIST=1000

Beep on error

setopt BEEP

Use keycodes (generated via zkbd) if present, otherwise fallback on

values from terminfo

if [[ -r ${ZDOTDIR:-$HOME}/.zkbd/${TERM}-${VENDOR} ]] ; then
"/etc/zshrc.backup-before-nix" [readonly] 73L, 3094B

Checklist


Add 👍 to issues you find important.

@kevin-ledezma
Copy link
Author

mv /etc/zshrc.backup-before-nix /etc/zshrc
override r--r--r-- root/wheel for /etc/zshrc? (y/n [n]) y
mv: rename /etc/zshrc.backup-before-nix to /etc/zshrc: Permission denied

@abathur
Copy link
Member

abathur commented Jan 28, 2025

I'd try to follow the uninstall instructions before reinstalling it: https://nixos.org/manual/nix/stable/installation/uninstall.html#macos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants