...and match all ethernet devices according to https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
We still assume that the machine either has just one interface
or that it's at least harmless to send dhcp requests on all of them
matchConfig.Name is a whitespace-separated list of shell-style globs according
to man 5 systemd.network.
old-style eth0 is kept to ease switching between interface naming
schemes and because it seems harmless to do so.
...and match for probable names of the first interface
according to
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
matchConfig.Name is a whitespace-separated list of shell-style globs according
to man 5 systemd.network.
old-style eth0 is kept to ease switching between interface naming
schemes and because it seems harmless to do so.
Thanks to @jfroche fixing cloud-init in
https://github.com/NixOS/nixpkgs/pull/226216, it's now able to retrieve
the IPv6 address from the metadata server on boot and creates a
/etc/systemd/network/10-cloud-init-eth0.network file that contains it.
After #80, the modules are exposed as paths, and Nix doesn't seem to
complain anymore.
This is probably a change in Nix itself. But that means we don't need
those `_file` anymore.