Summary Files Commits Branches @commit @diff @stats
path: root / modules / server
diff options
context:
space:
mode:
1 files changed, 5 insertions, 2 deletions
-rw-r--r--modules/server/dnsmasq.nix7
diff --git a/modules/server/dnsmasq.nix b/modules/server/dnsmasq.nix
index 4461e4f..3eec573 100644
--- a/modules/server/dnsmasq.nix
+++ b/modules/server/dnsmasq.nix
@@ -1,4 +1,4 @@
-{
+{ pkgs, ... }: {
networking.firewall = {
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [ 53 ];
@@ -7,7 +7,10 @@
enable = true;
alwaysKeepRunning = true;
settings = {
- addn-hosts = "/etc/hosts";
+ addn-hosts = [
+ "/etc/hosts"
+ (pkgs.stevenblack-blocklist + "/hosts")
+ ];
server = [
"1.1.1.1"
"1.0.0.1"