From d5de5c9ad91a4d116210211a83def793eba676cd Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sun, 8 Oct 2023 17:35:03 -0700 Subject: [PATCH] moved firewall rules next to required module --- hosts/Alaska/default.nix | 3 +-- hosts/Alaska/modules/dnsmasq.nix | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hosts/Alaska/default.nix b/hosts/Alaska/default.nix index 68d4a9d..34ea8bd 100644 --- a/hosts/Alaska/default.nix +++ b/hosts/Alaska/default.nix @@ -41,8 +41,7 @@ }; firewall = { enable = true; - allowedTCPPorts = [53 80 443 3001 5432]; # port 3001 opened to allow git traffic on the local netword - allowedUDPPorts = [53]; + allowedTCPPorts = [80 443 3001 5432]; # port 3001 opened to allow git traffic on the local netword }; }; diff --git a/hosts/Alaska/modules/dnsmasq.nix b/hosts/Alaska/modules/dnsmasq.nix index 854210d..b597445 100644 --- a/hosts/Alaska/modules/dnsmasq.nix +++ b/hosts/Alaska/modules/dnsmasq.nix @@ -1,6 +1,11 @@ { config, lib, pkgs, ...}: { + + networking.firewall = { + allowedTCPPorts = [53]; + allowedUDPPorts = [53]; + }; services.dnsmasq = { enable = true; alwaysKeepRunning = true;