grahamc / packet-nixos

The images used by Packet.net's deployment process.
MIT License
33 stars 10 forks source link

Static networking #8

Closed mmlb closed 6 years ago

mmlb commented 6 years ago

Fully configure networking statically. DHCP is not allowed for non custom_ipxe oses, except for a small window of time after provisioning completion. I'm not sure how exactly things actually worked as is, maybe dhcpcd cached some stuff and used it when it failed to get a lease?

I noticed this because I had dhcp requests routed to a nixos machine I've got, the dhcp requests of said nix server were also being routed to itself and when no dhcp server responded (or NACKd?) my network config was affected. I had no default gateways and no dns servers configured.

This PR brings nixos to work in the same fashion as all of the other packet supported OSes.