On Debian I used to just edit the NetworkManager configuration to add “Additional search domains” in the “IPv4 Settings” tab of my wired connection in the NetworkManager applet, but on NixOS that settings seems to have no effect. And when I re-connect the domains I added are gone.
I tried using the
networking.resolvconf.useHostResolvConf setting but it appears to do nothing in the file its defined in.
I also looked at NetworkManager settings and I found both
networking.networkmanager.insertNameservers but nothing related to search domains.
I also tried setting
networking.networkmanager.dns to several of the suggested values like
dnsmasqbut it has no effect whatsoever.
I just want to add:
resolv.conf so I don’t have to append it to hosts whenever I SSH. How can I do this?