Files
nixos-configs/hosts/tadpole/modules/network/default.nix
2024-07-21 10:37:16 +02:00

25 lines
404 B
Nix

{ ... }:
{
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;
};
}
];
};
}