Merge pull request #9683 from ts468/upstream.resolvconf
nixos networking module: resolvconf + dnsmasq
This commit is contained in:
commit
54acc6ada3
@ -39,6 +39,16 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.extraResolvconfConf = lib.mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = "";
|
||||||
|
example = "libc=NO";
|
||||||
|
description = ''
|
||||||
|
Extra configuration to append to <filename>resolvconf.conf</filename>.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
networking.proxy = {
|
networking.proxy = {
|
||||||
|
|
||||||
default = lib.mkOption {
|
default = lib.mkOption {
|
||||||
@ -150,6 +160,7 @@ in
|
|||||||
'' + optionalString dnsmasqResolve ''
|
'' + optionalString dnsmasqResolve ''
|
||||||
dnsmasq_conf=/etc/dnsmasq-conf.conf
|
dnsmasq_conf=/etc/dnsmasq-conf.conf
|
||||||
dnsmasq_resolv=/etc/dnsmasq-resolv.conf
|
dnsmasq_resolv=/etc/dnsmasq-resolv.conf
|
||||||
|
'' + cfg.extraResolvconfConf + ''
|
||||||
'';
|
'';
|
||||||
|
|
||||||
} // (optionalAttrs config.services.resolved.enable (
|
} // (optionalAttrs config.services.resolved.enable (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user