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
|
{ config, lib, ... }: let
|
||||||
inherit (lib) mkIf concatStringsSep;
|
inherit (lib) mkIf;
|
||||||
in {
|
in {
|
||||||
services.resolved = mkIf (!config.isServer) {
|
services.resolved = mkIf (!config.isServer) {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
extraConfig = config.dnsServers
|
settings.Resolve = {
|
||||||
|> map (server: "DNS=${server}")
|
DNS = config.dnsServers;
|
||||||
|> concatStringsSep "\n";
|
DNSSEC = true;
|
||||||
|
DNSOverTLS = true;
|
||||||
dnssec = "true";
|
};
|
||||||
dnsovertls = "true";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue