From: Duje Mihanović Date: Thu, 14 Sep 2023 12:53:00 +0000 (+0200) Subject: Switch network config to DHCP X-Git-Url: http://git.dujemihanovic.xyz/html/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=646e27dee1db43517aa92407fb8459f8e3437191;p=nixos-configuration.git Switch network config to DHCP --- diff --git a/configuration.nix b/configuration.nix index 76fb2d9..b679930 100644 --- a/configuration.nix +++ b/configuration.nix @@ -21,13 +21,7 @@ enable = true; networks."10-lan" = { matchConfig.Name = "eno1"; - address = [ - "192.168.1.30/24" - ]; - routes = [ - { routeConfig.Gateway = "192.168.1.1"; } - ]; - dns = [ "192.168.1.1" ]; + DHCP = "yes"; linkConfig.RequiredForOnline = "routable"; }; };