diff options
| author | Fuwn <[email protected]> | 2024-09-05 05:01:17 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-05 05:01:17 -0700 |
| commit | 5692ea4534d6382309e49aa5765b9589e26c2607 (patch) | |
| tree | 8b2d1cb9ec321932444b9d6086834ce1df0a08a8 | |
| parent | Bump: dotnet (diff) | |
| download | nixos-config-5692ea4534d6382309e49aa5765b9589e26c2607.tar.xz nixos-config-5692ea4534d6382309e49aa5765b9589e26c2607.zip | |
Bump: resolve
| -rw-r--r-- | modules/system/networking/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/system/networking/default.nix b/modules/system/networking/default.nix index 7478a17..61aabdd 100644 --- a/modules/system/networking/default.nix +++ b/modules/system/networking/default.nix @@ -1,4 +1,10 @@ { + lib, + pkgs, + config, + ... +}: +{ imports = [ ./firewall ./vpn @@ -29,4 +35,11 @@ "3.nixos.pool.ntp.org" ]; }; + + environment.etc."resolv.conf" = lib.mkForce { + source = pkgs.writeText "resolv.conf" '' + ${lib.concatStringsSep "\n" (map (ns: "nameserver ${ns}") config.networking.nameservers)} + options edns0 + ''; + }; } |