aboutsummaryrefslogtreecommitdiff
path: root/modules/networking/nixos/resolved.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-07-29 06:54:49 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-07-29 06:54:49 -0500
commite29dd8a2283399b7e046937340509d5aec4b52ba (patch)
treeaa679e70fe55cb620698ab1695eadf23f8a2cdba /modules/networking/nixos/resolved.nix
parentd2aecd69c17fa64305c07333686576152432993d (diff)
changes
Diffstat (limited to 'modules/networking/nixos/resolved.nix')
-rw-r--r--modules/networking/nixos/resolved.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/networking/nixos/resolved.nix b/modules/networking/nixos/resolved.nix
new file mode 100644
index 0000000..01e75e2
--- /dev/null
+++ b/modules/networking/nixos/resolved.nix
@@ -0,0 +1,24 @@
+{
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.collinux.system.network.dns;
+in
+ lib.mkIf (!cfg.areYouAServer) {
+ networking.nameservers = [
+ "9.9.9.9#dns.quad9.net"
+ "149.112.112.112#dns.quad9.net"
+ ];
+
+ services.resolved = {
+ enable = true;
+ settings.Resolve = {
+ DNSOverTLS = true;
+ DNSSEC = "allow-downgrade";
+
+ LLMNR = false;
+ MulticastDNS = false;
+ };
+ };
+ }