diff options
| Commit | 5f5f3cc1377ac45ad5193e77fbe465f96603a0a4 (patch) | |
|---|---|---|
| Author | 2025-07-01 18:28:13 +0300 | |
| Committer | 2025-07-01 18:28:13 +0300 | |
| Files | 549de89a53592be81492df2a871ed82ec4a31fa2 /modules/server/dnsmasq.nix | |
| nix-5f5f3cc1377ac45ad5193e77fbe465f96603a0a4.tar nix-5f5f3cc1377ac45ad5193e77fbe465f96603a0a4.tar.gz nix-5f5f3cc1377ac45ad5193e77fbe465f96603a0a4.zip | ||
| Parent | f3c1a99581927439118961cb4150e8982a92543d (diff) | |
feat(modules/server): Add minimal dnsmasq and httpd modules
1 files changed, 19 insertions, 0 deletions
| -rw-r--r-- | modules/server/dnsmasq.nix | 19 |
diff --git a/modules/server/dnsmasq.nix b/modules/server/dnsmasq.nix new file mode 100644 index 0000000..4461e4f --- /dev/null +++ b/modules/server/dnsmasq.nix @@ -0,0 +1,19 @@ +{ + networking.firewall = { + allowedTCPPorts = [ 53 ]; + allowedUDPPorts = [ 53 ]; + }; + services.dnsmasq = { + enable = true; + alwaysKeepRunning = true; + settings = { + addn-hosts = "/etc/hosts"; + server = [ + "1.1.1.1" + "1.0.0.1" + "8.8.8.8" + "8.8.4.4" + ]; + }; + }; +} |
