mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 11:59:08 +01:00
networking/overlay: Use non-blocking-nameservers on servers
This commit is contained in:
parent
7e922ee312
commit
e6de0eab05
1 changed files with 6 additions and 1 deletions
|
|
@ -78,7 +78,12 @@ in
|
|||
|
||||
dnsServers = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.nonEmptyStr;
|
||||
default = if (blocking-nameservers != [ ]) then blocking-nameservers else recursive-nameservers;
|
||||
default =
|
||||
{
|
||||
"client" = blocking-nameservers;
|
||||
"server" = recursive-nameservers;
|
||||
}
|
||||
.${cfg.role};
|
||||
};
|
||||
|
||||
implementation = lib.mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue