mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 02:27:44 +00:00
fix: fix dns servers option
This commit is contained in:
parent
232e79f0ad
commit
1da3418afa
3 changed files with 5 additions and 5 deletions
|
@ -1,14 +1,14 @@
|
||||||
{ lib, ... }: let
|
{ lib, ... }: let
|
||||||
inherit (lib) mkConst;
|
inherit (lib) mkConst;
|
||||||
in {
|
in {
|
||||||
options.networking.dns.servers = mkConst [
|
options.dns.servers = mkConst [
|
||||||
"45.90.28.0#7f2bf8.dns.nextdns.io"
|
"45.90.28.0#7f2bf8.dns.nextdns.io"
|
||||||
"2a07:a8c0::#7f2bf8.dns.nextdns.io"
|
"2a07:a8c0::#7f2bf8.dns.nextdns.io"
|
||||||
"45.90.30.0#7f2bf8.dns.nextdns.io"
|
"45.90.30.0#7f2bf8.dns.nextdns.io"
|
||||||
"2a07:a8c1::#7f2bf8.dns.nextdns.io"
|
"2a07:a8c1::#7f2bf8.dns.nextdns.io"
|
||||||
];
|
];
|
||||||
|
|
||||||
options.networking.dns.serversFallback = mkConst [
|
options.dns.serversFallback = mkConst [
|
||||||
"1.1.1.1#one.one.one.one"
|
"1.1.1.1#one.one.one.one"
|
||||||
"2606:4700:4700::1111#one.one.one.one"
|
"2606:4700:4700::1111#one.one.one.one"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
in {
|
in {
|
||||||
# Yeah, no DNSSEC or DoT or anything.
|
# Yeah, no DNSSEC or DoT or anything.
|
||||||
# That's what you get for using Darwin I guess.
|
# That's what you get for using Darwin I guess.
|
||||||
networking.dns = config.networking.dns.servers
|
networking.dns = config.dns.servers
|
||||||
|> map (splitString "#")
|
|> map (splitString "#")
|
||||||
|> map head;
|
|> map head;
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ in {
|
||||||
dnssec = "true";
|
dnssec = "true";
|
||||||
dnsovertls = "true";
|
dnsovertls = "true";
|
||||||
|
|
||||||
extraConfig = config.networking.dns.servers
|
extraConfig = config.dns.servers
|
||||||
|> map (server: "DNS=${server}")
|
|> map (server: "DNS=${server}")
|
||||||
|> concatStringsSep "\n";
|
|> concatStringsSep "\n";
|
||||||
|
|
||||||
fallbackDns = config.networking.dns.serversFallback;
|
fallbackDns = config.dns.serversFallback;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue