I can’t figure out how to configure dnsmasq under /etc/NetworkManager/dnsmasq.d/dnsmasq-nm.conf
and /etc/NetworkManager/dnsmasq-shared.d/dnsmasq-shared-nm.conf
.
In networking.networkmanager.dns it is stated that:
It is possible to pass custom options to the dnsmasq instance by adding them to files in the
/etc/NetworkManager/dnsmasq.d/
directory.
I played around with environment.etc
which is really close to what i want, but i don’t know how to make it place files in subdirectories, if that is possible.
Can i do this in a clean NixOS way, any help is appreciated?