mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Use systemd-resolved instead of knot resolver
This commit is contained in:
parent
8808152df7
commit
7459ee2ce1
2 changed files with 15 additions and 13 deletions
|
@ -1,13 +0,0 @@
|
|||
{ lib, ... }: with lib;
|
||||
|
||||
systemConfiguration {
|
||||
services.kresd = enabled;
|
||||
|
||||
networking.nameservers = [
|
||||
"::1"
|
||||
"127.0.0.1"
|
||||
|
||||
"1.1.1.1"
|
||||
"8.8.8.8"
|
||||
];
|
||||
}
|
15
modules/resolved.nix
Normal file
15
modules/resolved.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ self, lib, ... }: with lib;
|
||||
|
||||
systemConfiguration {
|
||||
services.resolved = enabled {
|
||||
domains = [ self.cube.networking.domain ];
|
||||
|
||||
dnsovertls = "opportunistic";
|
||||
fallbackDns = [
|
||||
"1.1.1.1#one.one.one.one"
|
||||
"2606:4700:4700::1111#one.one.one.one"
|
||||
"8.8.8.8#dns.google"
|
||||
"2001:4860:4860::8844#dns.google"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue