From 2fb9b465a370c06aa5952da9435fab1dee6fae41 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 16 Jun 2022 23:17:50 +0200 Subject: [PATCH] config/c3d2: add nameservers config --- config/c3d2.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config/c3d2.nix b/config/c3d2.nix index c8b531ec..ab7dafcb 100644 --- a/config/c3d2.nix +++ b/config/c3d2.nix @@ -1,6 +1,6 @@ # This module sets configuration for all NixOS machines defined in this flake -{ zentralwerk, config, options, lib, pkgs, ... }: +{ zentralwerk, hostRegistry, config, options, lib, pkgs, ... }: let hqPrefix64 = builtins.head ( @@ -138,6 +138,15 @@ in { }; }; + networking.nameservers = with hostRegistry.hosts.dnscache; [ + ip4 + ip6 + "9.9.9.9" + ]; + environment.etc."resolv.conf".text = lib.concatMapStrings (ns: '' + nameserver ${ns} + '') config.networking.nameservers; + nix = { autoOptimiseStore = true; gc = {