From 3dc0c01bed3aa23b704e48d94bee5e3788d5530c Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 30 Dec 2024 21:03:42 +0100 Subject: Use DHCP for IPv4 configuration, like OVH wants Signed-off-by: Mel --- configuration/devices.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'configuration') diff --git a/configuration/devices.nix b/configuration/devices.nix index dcb7e86..f9ec155 100644 --- a/configuration/devices.nix +++ b/configuration/devices.nix @@ -5,7 +5,7 @@ enable = true; version = 2; device = "/dev/sda"; - }; + }; networking = { useDHCP = false; @@ -22,14 +22,12 @@ systemd.network.enable = true; systemd.network.networks."10-wan" = { name = "ens3"; - DHCP = "no"; + DHCP = "ipv4"; address = [ "2001:41d0:701:1100::522b" - "162.19.227.249" ]; routes = [ { Gateway = "2001:41d0:701:1100::1"; } - { Gateway = "162.19.227.1"; } ]; }; } -- cgit 1.4.1