-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
Revert "Add networking.hosts and .hostFiles from nixos " #1353
Conversation
Testing if this solves my issues with localhost resolution for MacOS ssh client. |
Yes, it does resolve my issues. With the offending patch:
With this revert:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems best to do this for now given the issues people are running into, but cc @Enzime.
Oh we may now have to restore the original file that was moved to |
Right. You can add |
FYI I may not get to implementing an activation script in the next ~8h so if someone would like to take this over, be my guest. 🙏 |
A patch that replaced the original file with a symlink to nix store was reverted because MacOS Network framework doesn't support symlinks for the file. The revert leaves the system without any /etc/hosts file at all though. To fix this, an activation step is added to restore the original file from .before-nix-darwin backup, if it exists. Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
Hold off; I'm testing it. Will reopen for review when done. |
How I tested:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like an appropriate quick fix for now.
Reverts #939