* Generate a resolvconf.conf file for openresolv.

svn path=/nixos/trunk/; revision=32718
This commit is contained in:
Eelco Dolstra 2012-03-01 14:46:47 +00:00
parent 742198c6ea
commit e8539b6f60

View File

@ -56,5 +56,20 @@ in
'';
target = "hosts";
}
{ # /etc/resolvconf.conf: Configuration for openresolv.
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]*'
# Invalidate the nscd cache whenever resolv.conf is
# regenerated.
libc_restart='${pkgs.upstart}/sbin/start invalidate-nscd'
'';
target = "resolvconf.conf";
}
];
}