diff --git a/systems/hetzner-bridge/hardware.nix b/systems/hetzner-bridge/hardware.nix index 142a05c..4b485e4 100644 --- a/systems/hetzner-bridge/hardware.nix +++ b/systems/hetzner-bridge/hardware.nix @@ -15,7 +15,7 @@ ]; boot = { - availableKernelModules = [ + initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" @@ -32,7 +32,7 @@ # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; + # networking.useDHCP = lib.mkDefault true; # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; diff --git a/systems/hetzner-bridge/networking.nix b/systems/hetzner-bridge/networking.nix index 256e872..257c618 100644 --- a/systems/hetzner-bridge/networking.nix +++ b/systems/hetzner-bridge/networking.nix @@ -6,9 +6,14 @@ }: { - systemd.network.enable = true; - systemd.network.networks."10-wan" = { - matchConfig.Name = "enp1s0"; # either ens3 or enp1s0 depending on system, check 'ip addr' - networkConfig.DHCP = "ipv4"; + networking.useDHCP = false; + + systemd.network = { + enable = true; + networks."10-wan" = { + #matchConfig.Name = "enp1s0"; # either ens3 or enp1s0 depending on system, check 'ip addr' + matchConfig.Name = "ether"; + networkConfig.DHCP = "ipv4"; + }; }; }