From 378916ed3596e3ad0d9b080f8fca36061de110e3 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 5 Dec 2023 10:32:35 +0100 Subject: [PATCH] Change DNS resolver excepting for loopback needs --- modules/networking.nix | 2 +- modules/webstack.nix | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/networking.nix b/modules/networking.nix index 39403ca..97fcd6e 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -29,7 +29,7 @@ in { matchConfig.Name = "end0"; address = [ "192.168.13.2/24" ]; gateway = [ "192.168.13.1" ]; - dns = [ "192.168.13.2" ]; + dns = [ "1.1.1.1" "9.9.9.9" ]; networkConfig.DNSSEC = "no"; }; diff --git a/modules/webstack.nix b/modules/webstack.nix index 362e094..4cbe2a5 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -187,7 +187,10 @@ # ACME certs configuration security.acme = { acceptTerms = true; - defaults.email = "akasroua@gmail.com"; + defaults = { + email = "akasroua@disroot.org"; + dnsResolver = "127.0.0.1:53"; + }; }; # Generate dhparams