Hey everyone,
I have been experimenting with the networkd infrastructure recently, and have found it to be significantly more reliable and flexible than the default script based network infrastructure. As far as I can tell, it is still considered to be experimental and is not mentioned at all in the nixos documentation. Indeed, i got started using it by reading the test.
Is there a plan for what we want to do next? There are two obvious things that I can think of:
-
Make it easier to disable the scripting based infrastructure, and more thoroughly document how to configure things using
systemd.network
. This would allow both networkd and the script based systems to exist side by side (in nixpkgs, not on a system). I personally like the current style forsystemd.network
because it maps onto the systemd config files very clearly, so it is easy to read thenetworkd
manual and understand how to get what you want. -
Try and put the scripting infra and networkd behind a common interface. This seems quite a lot harder to me, since there is a lot of functionality in networkd which would need to be added to the scripting infra. Moreover, the current transparency of the
systemd.network
is actually quite nice as I explained above.
I think 2 is probably a more robust solution, and I don’t really have the skills to move it forward, but if there is interest in 1. I could start working on some documentation that we could put into the nixos manual.