]> git.dujemihanovic.xyz Git - nixos-configuration.git/blobdiff - configuration.nix
Switch network config to DHCP
[nixos-configuration.git] / configuration.nix
index 76fb2d9f13c6a63073ed4ad9fdc4afc46e6c2f64..b679930ecf5dbeb077b33ff1c221e0eb29edf2e1 100644 (file)
     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";
     };
   };