helm/hosts/profiles/dns/default.nix

37 lines
949 B
Nix
Raw Permalink Normal View History

2022-09-18 15:13:50 -07:00
{ config, pkgs, lib, ... }:
{
services.dnsmasq.enable = true;
services.dnsmasq.extraConfig = ''
domain-needed
no-resolv
local=/lan/
local=/moss/
cache-size=5000
addn-hosts=/etc/adblock.hosts
2022-10-04 03:37:02 -07:00
''; # TODO find a way to make adblock hosts reproducible and updateable
2022-09-18 15:13:50 -07:00
services.dnsmasq.servers = [ "45.90.30.49" "45.90.28.49" "1.1.1.1" "8.8.8.8" ];
2022-10-04 03:37:02 -07:00
# TODO use this list in mossnet-hosts
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"
"fin.mossnet.lan"
"paper.mossnet.lan"
2022-11-14 04:16:00 -08:00
"cal.mossnet.lan"
2022-12-13 07:05:56 -08:00
"archive.mossnet.lan"
];
2022-11-30 19:57:03 -08:00
"192.168.1.226" = [
"df-web.lan"
];
};
2022-09-18 15:13:50 -07:00
networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];
}