Files
nix/hosts/common/configs/system/dnsmasq/default.nix
2025-03-03 12:48:19 +00:00

22 lines
379 B
Nix

{ ... }:
{
services.dnsmasq = {
enable = true;
settings = {
bind-interfaces = true;
listen-address = [ "127.0.0.1" ];
conf-dir = "/etc/dnsmasq.d,*.conf";
server = [
"1.1.1.1"
"1.0.0.1"
];
};
};
systemd.tmpfiles.rules = [ "d /etc/dnsmasq.d 0755 root resolvconf" ];
networking.networkmanager.dns = "dnsmasq";
}