3

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?

2

networking.nameservers = [ "1.1.1.1" "9.9.9.9" ]

1
  environment.etc = {
    "resolv.conf".text = "nameserver 192.168.0.32\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.