5

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 Answers 2

14

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

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .