Files
nix/hosts/common/configs/system/dnsmasq/default.nix
2025-02-14 19:28:45 +00:00

23 lines
380 B
Nix

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