hosts icon indicating copy to clipboard operation
hosts copied to clipboard

Use `networking.hostFiles` for Nixos instead of `networking.extraHosts`

Open rafa-dot-el opened this issue 2 years ago β€’ 3 comments

Refactor the usage of extraHosts https://github.com/StevenBlack/hosts/blob/543acefaf78eb06f9f99cac0b6b6b1f6d09f4f50/flake.nix#L24 to use networking.hostFiles

rafa-dot-el avatar Feb 16 '23 21:02 rafa-dot-el

Hello! Thank you for opening your first issue in this repo. It’s people like you who make these host files better!

welcome[bot] avatar Feb 16 '23 21:02 welcome[bot]

Thank you for this Rafa @rafa-dot-el.

We would do this because... ?

Please provide a reason. πŸ˜„

StevenBlack avatar Feb 16 '23 21:02 StevenBlack

I forgot this point, sorry. It is suggested by the documentation, it points out to use it

For adding hosts from derivation results, use {option}`networking.hostFiles` instead.

Reference

rafa-dot-el avatar Feb 21 '23 16:02 rafa-dot-el

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 12 '23 18:08 stale[bot]

Closing.

stale[bot] avatar Sep 17 '23 03:09 stale[bot]