diff options
author | Thomas Strobel <ts468@cam.ac.uk> | 2015-09-21 23:39:03 +0200 |
---|---|---|
committer | Thomas Strobel <ts468@cam.ac.uk> | 2015-09-26 18:49:16 +0200 |
commit | 6da2ea345cf92b07068fff3ba129b43e83b46471 (patch) | |
tree | 277c8640efecf69095e6d3d7dd365c8ec6297b1a /nixos/modules | |
parent | 066481cb13d6919fb178cc085529f996f0318a58 (diff) | |
download | nixlib-6da2ea345cf92b07068fff3ba129b43e83b46471.tar nixlib-6da2ea345cf92b07068fff3ba129b43e83b46471.tar.gz nixlib-6da2ea345cf92b07068fff3ba129b43e83b46471.tar.bz2 nixlib-6da2ea345cf92b07068fff3ba129b43e83b46471.tar.lz nixlib-6da2ea345cf92b07068fff3ba129b43e83b46471.tar.xz nixlib-6da2ea345cf92b07068fff3ba129b43e83b46471.tar.zst nixlib-6da2ea345cf92b07068fff3ba129b43e83b46471.zip |
networking module: add extraResolvconfConf option
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/config/networking.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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 <filename>resolvconf.conf</filename>. + ''; + }; + + 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 ( |