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

Option to configure /etc/hosts file #1035

Open
secana opened this issue Aug 16, 2024 · 3 comments
Open

Option to configure /etc/hosts file #1035

secana opened this issue Aug 16, 2024 · 3 comments

Comments

@secana
Copy link

secana commented Aug 16, 2024

Hi!

In NixOS there is the option networking.hosts to configure the /etc/hosts file for additional DNS entries.

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?

@ibizaman
Copy link

Agreed! see #939

@secana
Copy link
Author

secana commented Aug 19, 2024

Oh, I searched for similar issues but missed the PR. I'll close this one as a duplicate.

@secana secana closed this as completed Aug 19, 2024
@Enzime
Copy link
Collaborator

Enzime commented Sep 3, 2024

Reopening this until either #939 or #807 gets merged

@Enzime Enzime reopened this Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants