config/c3d2: add nameservers config
This commit is contained in:
parent
d11b860e52
commit
2fb9b465a3
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user