Install NixOS on Hetzner Online: Difference between revisions

imported>Makefu
m add missing external gw
imported>Mic92
mention netdev unit
Line 16: Line 16:
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
{ ... }: {
{ ... }: {
   # this make sure that our interface is named `eth0`,
   # This make sure that our interface is named `eth0`.
   # this should be ok as long as you don't have multiple physical network cards
   # This should be ok as long as you don't have multiple physical network cards
  # For multiple cards one could add a netdev unit to rename the interface based on the mac address
   networking.usePredictableInterfaceNames = false;
   networking.usePredictableInterfaceNames = false;
   systemd.network = {
   systemd.network = {