From 1a78049a7a79cff31d8f4142511985329f6d0f1a Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 11 Apr 2023 11:44:59 +0200 Subject: [PATCH] renge: Use networkd --- machines/renge/hardware-configuration.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/machines/renge/hardware-configuration.nix b/machines/renge/hardware-configuration.nix index ae8be19..644e78a 100644 --- a/machines/renge/hardware-configuration.nix +++ b/machines/renge/hardware-configuration.nix @@ -46,17 +46,18 @@ networking = { useDHCP = false; usePredictableInterfaceNames = false; - interfaces.eth0 = { - useDHCP = true; - ipv6.addresses = lib.singleton { - address = "2a01:4f8:1c1e:88cd::"; - prefixLength = 64; + }; + systemd.network = { + enable = true; + networks = { + eth0 = { + name = "eth0"; + DHCP = "yes"; + domains = [ "sbruder.de" ]; + address = [ "2a01:4f8:1c1e:88cd::/64" ]; + gateway = [ "fe80::1" ]; }; }; - defaultGateway6 = { - address = "fe80::1"; - interface = "eth0"; - }; }; # no smart on qemu disk