summaryrefslogblamecommitdiff
path: root/hosts/mox/modules/network.nix
blob: dde2e49fc21fba1dcceb69996c49d9f20f800384 (plain) (tree)
1
2
3
4
5
6
7
8







                   
















                                         
{ ... }:

let
  wan = "ens18";
  dns = "10.0.0.2";
in
{
  networking = {
    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 ];
    };
  };
}