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

NIX installtation #11524

Open
1 task
Sakshikhade opened this issue Sep 17, 2024 · 2 comments
Open
1 task

NIX installtation #11524

Sakshikhade opened this issue Sep 17, 2024 · 2 comments

Comments

@Sakshikhade
Copy link

Platform

  • macOS

Additional information

sh <(curl -L https://nixos.org/nix/install)

Output

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

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

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

  2. Ensure /etc/bash.bashrc.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.

  3. Once you confirm /etc/bash.bashrc is backed up and
    /etc/bash.bashrc.backup-before-nix doesn't mention Nix, run:
    mv /etc/bash.bashrc.backup-before-nix /etc/bash.bashrc


</details>

## Priorities

Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
@abathur
Copy link
Member

abathur commented Sep 18, 2024

It looks like you've just quoted output from the installer. What's the problem?

@roberth
Copy link
Member

roberth commented Sep 19, 2024

It seems that having to back up two files is confusing to people when those two files already have a "backup of" relation between themselves. I think we've had similar reports before.

What if the installer just did it for them? Or made a very concrete suggestion, such as:

time=$(date -Iminutes)
mkdir /etc/bashrc-backups-before-nix-installation-$time
cp /etc/bash.bashrc /etc/bash.bashrc.backup-before-nix /etc/bashrc-backups-before-nix-installation-$time
unset time

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

3 participants