Closed kurnevsky closed 11 months ago
Hm, actually I might try to replicate more options from https://github.com/NixOS/nixpkgs/blob/nixos-23.05/nixos/modules/config/networking.nix , at least hosts
and hostFiles
seem useful.
ok, seems to work. I don't really know why nixpkgs defines 127.0.0.2 as localhost, so I didn't do that :)
127.0.0.2 as localhost
It's something from nss-myhostname, but we don't have systemd so we don't really need it.
Ping :)
Sorry for a slow response.
Sorry for a slow response.
No problem. Just wanted to make sure it's not forgotten.
I'm not a fan of the overdone nixos interface, but, I guess, we shouldn't deviate.
I personally use only networking.hosts
, so I'm not really sure how other settings are useful. There are advantages of keeping it in sync with nixpkgs, but it's more complicated. I'm fine either way, I guess :)
But if we stick to it, I'd like a testcase exercising all these options + assertion path. You can write one or I can write one, but it might take some time for me to find time for that.
I can try to do that. It's me who wants these settings after all :)
But if we stick to it
So should we? :)
On July 26, 2023 10:07:23 AM GMT+02:00, Evgeny Kurnevsky @.***> wrote:
But if we stick to it
So should we? :)
Yeah. We shouldn't invent different override mechanisms incompatible with the NixOS interface.
If you are willing to reduce it to just the subset you use and have the subset compatible, that could be a way. But I'll be willing to accept the full one + a bit of tests.
ok, added a test. Wanted to use https://github.com/bats-core/bats-assert#assert_line but couldn't figure out how to add it in shebang - I guess some more complex changes are required for it.
btw, should I add myself to authors now? :)
good. hope grep is available in tests.
It is.
BTW, if you know where to express this idea so that all contributors get it, I'm all ears.
Well, readme with or Contributing.md
with some basic steps should be enough :)
Also, consider adding a changelog entry.
Done.
It seems formatting is not correct. How do I format it properly?
Probably nixpkgs-fmt... There are a lot of different nix formatters :)
Tested on my phone with yggdrasil - works fine :)