* Generate a resolvconf.conf file for openresolv.
svn path=/nixos/trunk/; revision=32718
This commit is contained in:
parent
742198c6ea
commit
e8539b6f60
@ -56,5 +56,20 @@ in
|
|||||||
'';
|
'';
|
||||||
target = "hosts";
|
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";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user