Files
nix/hosts/common/configs/system/dnsmasq/default.nix
2025-03-01 13:17:59 +00:00

17 lines
316 B
Nix

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