I've not found much information in the manual.

I've tried to manually modify the file /etc/resolv.conf however this seems to be overwritten by something?

How can I achieve this?


networking.nameservers = [ "" "" ]

  environment.etc = {
    "resolv.conf".text = "nameserver\n";

Adding the above to my /etc/nixos/configuration.nix seems to work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.