git.iko.soy/typeable/nixpkgs
on master help sign in
networking module: add extraResolvconfConf option
commit6da2ea345cf92b07068fff3ba129b43e83b46471 authorThomas Strobel <ts468@cam.ac.uk> dateMon 21 Sep 2015, 23:39 (11 years ago) parent066481c
1 file changed+11
nixos/modules/config/networking.nix+11
nixos/modules/config/networking.nix+11
@@ -39,6 +39,16 @@ in
3939 '';
4040 };
4141
42+ networking.extraResolvconfConf = lib.mkOption {
43+ type = types.lines;
44+ default = "";
45+ example = "libc=NO";
46+ description = ''
47+ Extra configuration to append to <filename>resolvconf.conf</filename>.
48+ '';
49+ };
50+
51+
4252 networking.proxy = {
4353
4454 default = lib.mkOption {
@@ -150,6 +160,7 @@ in
150160 '' + optionalString dnsmasqResolve ''
151161 dnsmasq_conf=/etc/dnsmasq-conf.conf
152162 dnsmasq_resolv=/etc/dnsmasq-resolv.conf
163+ '' + cfg.extraResolvconfConf + ''
153164 '';
154165
155166 } // (optionalAttrs config.services.resolved.enable (