~ruther/nixos-config

7a75ff669301cc2683895116014aa016623381d2 — Frantisek Bohacek 1 year, 5 months ago c6dd910
feat: make sure dhcp won't change dns
1 files changed, 11 insertions(+), 5 deletions(-)

M modules/services/wireguard.nix
M modules/services/wireguard.nix => modules/services/wireguard.nix +11 -5
@@ 5,11 5,17 @@
    allowedUDPPorts = [ 51820 ];
  };

  networking.nameservers = [
    "${inputs.semi-secrets.wg.lan.serverIp}"
    "1.1.1.1"
    "1.0.0.1"
  ];
  networking = {
    nameservers = [
      "${inputs.semi-secrets.wg.lan.serverIp}"
      "1.1.1.1"
      "1.0.0.1"
    ];

    # disable auto resolving
    dhcpcd.extraConfig = "nohook resolv.conf";
    networkmanager.dns = "none";
  };

  networking.resolvconf.extraOptions = [
    "timeout: 2"

Do not follow this link