diff --git a/hosts/tadpole/modules/network/default.nix b/hosts/tadpole/modules/network/default.nix index c14c388..3b14746 100644 --- a/hosts/tadpole/modules/network/default.nix +++ b/hosts/tadpole/modules/network/default.nix @@ -3,4 +3,22 @@ networking = { hostName = "tadpole"; }; + + systemd.network.networks."10-wan" = { + networkConfig.DHCP = "no"; + address = [ "65.21.106.222/32" ]; + routes = [ + { + routeConfig = { + Destination = "172.31.1.1"; + }; + } + { + routeConfig = { + Gateway = "172.31.1.1"; + GatewayOnLink = true; + }; + } + ]; + }; }