Open secana opened 3 months ago
Hi!
In NixOS there is the option networking.hosts to configure the /etc/hosts file for additional DNS entries.
networking.hosts
/etc/hosts
Example:
networking.hosts = { "127.0.0.2" = ["other-localhost"]; "192.0.2.1" = ["mail.example.com" "imap.example.com"]; };
See NixOS Wiki - Networking for more information.
However, a similar options seems to be missing on nix-darwin regarding the listed options here: https://daiderd.com/nix-darwin/manual/index.html
Can we add the networking.hosts option to nix-darwin or is there already another way to configure the hosts file?
Agreed! see https://github.com/LnL7/nix-darwin/pull/939
Oh, I searched for similar issues but missed the PR. I'll close this one as a duplicate.
Reopening this until either #939 or #807 gets merged
👍
Hi!
In NixOS there is the option
networking.hosts
to configure the/etc/hosts
file for additional DNS entries.Example:
See NixOS Wiki - Networking for more information.
However, a similar options seems to be missing on nix-darwin regarding the listed options here: https://daiderd.com/nix-darwin/manual/index.html
Can we add the
networking.hosts
option to nix-darwin or is there already another way to configure the hosts file?