Created
May 25, 2018 08:46
-
-
Save tazjin/cb365d2ad875473ccd58e789ed89c62a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate an immutable /etc/resolv.conf from the networking.nameservers setting: | |
environment.etc."resolv.conf" = with lib; with pkgs; { | |
source = writeText "resolv.conf" '' | |
${concatStringsSep "\n" (map (ns: "nameserver ${ns}") config.networking.nameservers)} | |
options edns0 | |
''; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment