diff options
author | Christian Kauhaus <kc@flyingcircus.io> | 2019-11-29 12:08:34 +0100 |
---|---|---|
committer | Christian Kauhaus <kc@flyingcircus.io> | 2019-11-29 12:08:34 +0100 |
commit | 918c2ca01aabb31ec2d6c033a14039d0adbe87de (patch) | |
tree | 57eb2a5620c252337c2391cad28d9ef699596d9c /nixos/modules | |
parent | 724133984f066ee7ad1592f08ae886a718eb31c6 (diff) | |
download | nixlib-918c2ca01aabb31ec2d6c033a14039d0adbe87de.tar nixlib-918c2ca01aabb31ec2d6c033a14039d0adbe87de.tar.gz nixlib-918c2ca01aabb31ec2d6c033a14039d0adbe87de.tar.bz2 nixlib-918c2ca01aabb31ec2d6c033a14039d0adbe87de.tar.lz nixlib-918c2ca01aabb31ec2d6c033a14039d0adbe87de.tar.xz nixlib-918c2ca01aabb31ec2d6c033a14039d0adbe87de.tar.zst nixlib-918c2ca01aabb31ec2d6c033a14039d0adbe87de.zip |
Remove networking.hostConf option
This PR is part of the networking.* namespace cleanup. We feel that networking.hostConf is rarely used and provides little value compared to using environment.etc."host.conf" directly. Provide sensible default: multi on
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/config/networking.nix | 17 | ||||
-rw-r--r-- | nixos/modules/rename.nix | 1 |
2 files changed, 4 insertions, 14 deletions
diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index a89667ea221c..3560e579e47c 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -41,19 +41,6 @@ in ''; }; - networking.hostConf = lib.mkOption { - type = types.lines; - default = "multi on"; - example = '' - multi on - reorder on - trim lan - ''; - description = '' - The contents of <filename>/etc/host.conf</filename>. See also <citerefentry><refentrytitle>host.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>. - ''; - }; - networking.timeServers = mkOption { default = [ "0.nixos.pool.ntp.org" @@ -186,7 +173,9 @@ in ''; # /etc/host.conf: resolver configuration file - "host.conf".text = cfg.hostConf; + "host.conf".text = '' + multi on + ''; } // optionalAttrs (pkgs.stdenv.hostPlatform.libc == "glibc") { # /etc/rpc: RPC program numbers. diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix index e392fef54dde..83b29613d9c2 100644 --- a/nixos/modules/rename.nix +++ b/nixos/modules/rename.nix @@ -239,6 +239,7 @@ with lib; (mkRemovedOptionModule [ "systemd" "generator-packages" ] "Use systemd.packages instead.") (mkRemovedOptionModule [ "fonts" "enableCoreFonts" ] "Use fonts.fonts = [ pkgs.corefonts ]; instead.") (mkRemovedOptionModule [ "networking" "vpnc" ] "Use environment.etc.\"vpnc/service.conf\" instead.") + (mkRemovedOptionModule [ "networking" "hostConf" ] "Use environment.etc.\"host.conf\" instead.") # ZSH (mkRenamedOptionModule [ "programs" "zsh" "enableSyntaxHighlighting" ] [ "programs" "zsh" "syntaxHighlighting" "enable" ]) |