2023-10-08 17:30:00 -07:00
|
|
|
{ config, lib, pkgs, ...}:
|
|
|
|
|
|
|
|
{
|
2023-10-08 17:35:03 -07:00
|
|
|
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [53];
|
|
|
|
allowedUDPPorts = [53];
|
|
|
|
};
|
2023-10-08 17:30:00 -07:00
|
|
|
services.dnsmasq = {
|
|
|
|
enable = true;
|
|
|
|
alwaysKeepRunning = true;
|
|
|
|
resolveLocalQueries = true;
|
|
|
|
settings = {
|
|
|
|
listen-address = "::1,127.0.0.1,10.0.0.183";
|
|
|
|
port = 53;
|
|
|
|
# Manual expection for frustrating windows devices to point at headscale server
|
2023-10-14 20:02:06 -07:00
|
|
|
address = [
|
|
|
|
"/files.nickiel.net/10.0.0.183"
|
|
|
|
"/git.nickiel.net/10.0.0.183"
|
|
|
|
"/headscale.nickiel.net/10.0.0.183"
|
|
|
|
"/irc.nickiel.net/10.0.0.183"
|
|
|
|
"/jellyfin.nickiel.net/10.0.0.183"
|
|
|
|
"/vaultwarden.nickiel.net/100.64.0.1"
|
|
|
|
];
|
|
|
|
server = [ "1.1.1.1" "8.8.8.8" "8.8.4.4" ];
|
2023-10-08 17:30:00 -07:00
|
|
|
bogus-priv = true;
|
|
|
|
domain-needed = true;
|
|
|
|
no-resolv = true;
|
|
|
|
cache-size = 1000;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|