blob: bf7c690b61798e95f42ea8488cfcb30648c74774 (
plain) (
tree)
|
|
{ ... }:
let
wan = "ens18";
dns = "10.0.0.2";
in
{
networking = {
useDHCP = false;
interfaces.${wan}.ipv4.addresses = [{
address = "10.0.8.101";
prefixLength = 16;
}];
defaultGateway = {
address = "10.0.0.1";
interface = wan;
};
};
services = {
dnsmasq = {
enable = true;
settings.server = [ dns ];
};
};
}
|