Files
nix/hosts/common/configs/system/dnsmasq/default.nix
2025-02-13 22:16:55 +00:00

20 lines
309 B
Nix

{ ... }:
{
services.dnsmasq = {
enable = true;
settings = {
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";
}