3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #162996 from alyssais/resolvconf-disable

This commit is contained in:
Sandro 2022-03-27 12:25:14 +02:00 committed by GitHub
commit b9ddfd63b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,8 +47,8 @@ in
enable = mkOption { enable = mkOption {
type = types.bool; type = types.bool;
default = false; default = !(config.environment.etc ? "resolv.conf");
internal = true; defaultText = literalExpression ''!(config.environment.etc ? "resolv.conf")'';
description = '' description = ''
DNS configuration is managed by resolvconf. DNS configuration is managed by resolvconf.
''; '';
@ -110,8 +110,6 @@ in
config = mkMerge [ config = mkMerge [
{ {
networking.resolvconf.enable = !(config.environment.etc ? "resolv.conf");
environment.etc."resolvconf.conf".text = environment.etc."resolvconf.conf".text =
if !cfg.enable then if !cfg.enable then
# Force-stop any attempts to use resolvconf # Force-stop any attempts to use resolvconf