Replace etc files with links if they exist but backup first
Fixes #149
I added some extra validation for nix.conf in 4bffc92, this should be relatively safe if the uninstaller restores the backup files.
Thanks :)
@LnL7 Is this alright to merge? The installer in its current state leaves you without darwin-rebuild available in the path if you install nix-darwin immediately after installing nix because it can't replace things in /etc/ unless the user moves them first.
I've used this in production quite a few times and it works.
I've used this in production quite a few times and it works.
It looks good to me, this is pretty much the same process I did manually to get the install to work. Does this also have the update to restore backed up files using the uninstaller?
I run into this with /etc/shells quite a bit, would this still be a candidate for merger?
I run into this with
/etc/shellsquite a bit, would this still be a candidate for merger?
This doesn't work in its current state anymore, but my work in #257 does.
When I originally opened it, @LnL7 requested finer controls over which files are backed up, but I didn't have time to fix that at the time. I can revisit it to fix that and open the PR again.
@kclejeune that would be great 👍