2021-11-17 04:50:18 -08:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
services.dnsmasq.enable = true;
|
|
|
|
services.dnsmasq.extraConfig = ''
|
|
|
|
domain-needed
|
|
|
|
no-resolv
|
|
|
|
local=/lan/
|
|
|
|
local=/moss/
|
|
|
|
cache-size=5000
|
2022-07-01 07:43:49 -07:00
|
|
|
addn-hosts=/etc/adblock.hosts
|
|
|
|
''; # find a way to make adblock hosts reproducible and updateable
|
2021-11-17 04:50:18 -08:00
|
|
|
services.dnsmasq.servers = [ "45.90.30.49" "45.90.28.49" "1.1.1.1" "8.8.8.8" ];
|
2022-08-31 04:40:09 -07:00
|
|
|
networking.hosts = { "192.168.1.240" = [ "mossnet.lan" "links.mossnet.lan" "read.mossnet.lan" "stats.mossnet.lan" "music.mossnet.lan" "rss.mossnet.lan" "tasks.mossnet.lan" "file.mossnet.lan" "books.mossnet.lan" ]; };
|
2021-11-17 04:50:18 -08:00
|
|
|
networking.firewall.allowedTCPPorts = [ 53 ];
|
|
|
|
networking.firewall.allowedUDPPorts = [ 53 ];
|
|
|
|
}
|