config/c3d2: add nameservers config

This commit is contained in:
Astro 2022-06-16 23:17:50 +02:00
parent d11b860e52
commit 2fb9b465a3
1 changed files with 10 additions and 1 deletions

View File

@ -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 = {