17 lines
632 B
Nix
17 lines
632 B
Nix
|
{ config, pkgs, lib, ... }:
|
||
|
{
|
||
|
services.dnsmasq.enable = true;
|
||
|
services.dnsmasq.extraConfig = ''
|
||
|
domain-needed
|
||
|
no-resolv
|
||
|
local=/lan/
|
||
|
local=/moss/
|
||
|
cache-size=5000
|
||
|
addn-hosts=/ec/adblock.hosts
|
||
|
'';
|
||
|
services.dnsmasq.servers = [ "45.90.30.49" "45.90.28.49" "1.1.1.1" "8.8.8.8" ];
|
||
|
networking.hosts = { "172.16.11.240" = [ "mossnet.lan" "links.mossnet.lan" "read.mossnet.lan" "stats.mossnet.lan" "music.moss" "tasks.moss" "headphones.moss" "cloud.moss" "links.moss" "read.moss" "stats.moss" "rss.moss" ]; };
|
||
|
networking.firewall.allowedTCPPorts = [ 53 ];
|
||
|
networking.firewall.allowedUDPPorts = [ 53 ];
|
||
|
}
|