1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-17 22:08:28 +00:00
nix-darwin/modules/networking
Ihar Hrachyshka b1db30ce36 networking: Restore the original /etc/hosts on activation
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>
2025-02-26 16:52:13 -05:00
..
default.nix networking: Restore the original /etc/hosts on activation 2025-02-26 16:52:13 -05:00