Merge pull request #9683 from ts468/upstream.resolvconf
nixos networking module: resolvconf + dnsmasq
commit54acc6ada32705d670bff2fc1f106bcf3b52746f
authorts468 <ts468@users.noreply.github.com>
dateSat 26 Sep 2015, 18:50 (11 years ago)
parentee7e17c6da2ea3
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 (