1
Fork 0
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:
RGBCube 2024-04-19 20:16:22 +03:00
parent 8808152df7
commit 7459ee2ce1
No known key found for this signature in database
2 changed files with 15 additions and 13 deletions

View file

@ -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
View 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"
];
};
}