Merge pull request #50321 from florianjacob/systemd-resolved

nixos/systemd-resolved: link networkd resolv.conf to dynamic stub resolver
This commit is contained in:
Silvan Mosberger 2018-11-13 23:42:54 +01:00 committed by GitHub
commit 9c7f44e18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,9 +260,9 @@ in
'';
} // optionalAttrs config.services.resolved.enable {
# symlink the static version of resolv.conf as recommended by upstream:
# symlink the dynamic stub resolver of resolv.conf as recommended by upstream:
# https://www.freedesktop.org/software/systemd/man/systemd-resolved.html#/etc/resolv.conf
"resolv.conf".source = "${pkgs.systemd}/lib/systemd/resolv.conf";
"resolv.conf".source = "/run/systemd/resolve/stub-resolv.conf";
} // optionalAttrs (config.services.resolved.enable && dnsmasqResolve) {
"dnsmasq-resolv.conf".source = "/run/systemd/resolve/resolv.conf";
} // optionalAttrs (pkgs.stdenv.hostPlatform.libc == "glibc") {