]> git.dujemihanovic.xyz Git - nixos-configuration.git/commitdiff
Switch network config to DHCP
authorDuje Mihanović <duje.mihanovic@skole.hr>
Thu, 14 Sep 2023 12:53:00 +0000 (14:53 +0200)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Thu, 14 Sep 2023 12:53:00 +0000 (14:53 +0200)
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";
     };
   };