mirror of
https://github.com/thegeneralist01/config.git
synced 2026-07-21 19:05:19 +02:00
Update resolved DNS settings
This commit is contained in:
parent
7fd352124e
commit
9e366fe80b
1 changed files with 6 additions and 7 deletions
|
|
@ -1,14 +1,13 @@
|
|||
{ config, lib, ... }: let
|
||||
inherit (lib) mkIf concatStringsSep;
|
||||
inherit (lib) mkIf;
|
||||
in {
|
||||
services.resolved = mkIf (!config.isServer) {
|
||||
enable = true;
|
||||
|
||||
extraConfig = config.dnsServers
|
||||
|> map (server: "DNS=${server}")
|
||||
|> concatStringsSep "\n";
|
||||
|
||||
dnssec = "true";
|
||||
dnsovertls = "true";
|
||||
settings.Resolve = {
|
||||
DNS = config.dnsServers;
|
||||
DNSSEC = true;
|
||||
DNSOverTLS = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue