diff options
| author | Mel <einebeere@gmail.com> | 2024-04-04 23:39:22 +0000 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-04-04 23:39:22 +0000 |
| commit | 9f41941b2c0a45e9471f3491a3af9472cad0b964 (patch) | |
| tree | b135c8963ebb6e07469efafb4f31bc426ded0603 /machines | |
| parent | b76ad56fc98a03514fa897de6ed72d97a3f7b465 (diff) | |
| download | rnrd-9f41941b2c0a45e9471f3491a3af9472cad0b964.tar.zst rnrd-9f41941b2c0a45e9471f3491a3af9472cad0b964.zip | |
Replace static network configuration, with DHCP
Diffstat (limited to 'machines')
| -rw-r--r-- | machines/lapin.nix | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/machines/lapin.nix b/machines/lapin.nix index ddeace0..6115145 100644 --- a/machines/lapin.nix +++ b/machines/lapin.nix @@ -2,27 +2,34 @@ { networking = { - useDHCP = false; + # Previously Hetzer didn't really work with simple DHCP, + # now it does?? I think?? Either way I'll leave the static + # networkd configuration below. + useDHCP = true; nameservers = [ "1.1.1.1" "1.0.0.1" "2606:4700:4700::1111" "2606:4700:4700::1001" ]; }; - systemd.network.enable = true; - systemd.network.networks."10-wan" = { - name = "enp1s0"; - DHCP = "no"; - address = [ - "2a01:4f8:c012:9493::1" - "138.201.117.99" - ]; - routes = [ - { routeConfig.Gateway = "fe80::1"; } - { routeConfig.Destination = "172.31.1.1"; } - { routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; } - ]; - }; + + # Legacy networkd static network configuration, + # Maybe will be needed again? + + # systemd.network.enable = true; + # systemd.network.networks."10-wan" = { + # name = "enp1s0"; + # DHCP = "yes"; + # address = [ + # "2a01:4f8:c012:9493::1" + # "138.201.117.99" + # ]; + # routes = [ + # { routeConfig.Gateway = "fe80::1"; } + # { routeConfig.Destination = "172.31.1.1"; } + # { routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; } + # ]; + # }; services.resolved = { # LLMNR and MulticastDNS both give DNS timeouts. |
