* Fix the generation of resolvconf.conf.

svn path=/nixos/trunk/; revision=33435
This commit is contained in:
Eelco Dolstra 2012-03-26 22:14:47 +00:00
parent e9d641014d
commit da6046ef6b

View File

@ -58,18 +58,17 @@ in
}
{ # /etc/resolvconf.conf: Configuration for openresolv.
source = pkgs.writeText "resolvconf.conf"
source = pkgs.writeText "resolvconf.conf" (
''
# This is the default, but we must set it here to prevent
# a collision with an apparently unrelated environment
# variable with the same name exported by dhcpcd.
interface_order='lo lo[0-9]*'
'' + optionalString config.services.nscd.enable
''
'' + optionalString config.services.nscd.enable ''
# Invalidate the nscd cache whenever resolv.conf is
# regenerated.
libc_restart='${pkgs.upstart}/sbin/start invalidate-nscd'
'';
'' );
target = "resolvconf.conf";
}
];