From 6da2ea345cf92b07068fff3ba129b43e83b46471 Mon Sep 17 00:00:00 2001 From: Thomas Strobel Date: Mon, 21 Sep 2015 23:39:03 +0200 Subject: [PATCH] networking module: add extraResolvconfConf option --- nixos/modules/config/networking.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index f99cea7d17b1..b49f8a156d1d 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -39,6 +39,16 @@ in ''; }; + networking.extraResolvconfConf = lib.mkOption { + type = types.lines; + default = ""; + example = "libc=NO"; + description = '' + Extra configuration to append to resolvconf.conf. + ''; + }; + + networking.proxy = { default = lib.mkOption { @@ -150,6 +160,7 @@ in '' + optionalString dnsmasqResolve '' dnsmasq_conf=/etc/dnsmasq-conf.conf dnsmasq_resolv=/etc/dnsmasq-resolv.conf + '' + cfg.extraResolvconfConf + '' ''; } // (optionalAttrs config.services.resolved.enable (