From d30b2eb1c0458f5ede751956effe714f5c1a925b Mon Sep 17 00:00:00 2001 From: Valentin Shirokov Date: Mon, 31 Jul 2017 17:58:03 +0800 Subject: [PATCH] Removed networking.fqdn option Adding it was a mistake which can only lead to problems and confusion. --- nixos/modules/config/networking.nix | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index b3639037914..619f36cd515 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -20,15 +20,6 @@ in options = { - networking.fqdn = lib.mkOption { - type = types.nullOr types.str; - default = null; - example = "foo.example.com"; - description = '' - Fully qualified domain name, if any. - ''; - }; - networking.hosts = lib.mkOption { type = types.attrsOf ( types.listOf types.str ); default = {}; @@ -220,12 +211,11 @@ in ( builtins.hasAttr "::1" cfg.hosts ) ( concatStringsSep " " ( remove "localhost" cfg.hosts."::1" )); otherHosts = allToString ( removeAttrs cfg.hosts [ "127.0.0.1" "::1" ]); - maybeFQDN = optionalString ( cfg.fqdn != null ) cfg.fqdn; in '' - 127.0.0.1 ${maybeFQDN} ${userLocalHosts} localhost + 127.0.0.1 ${userLocalHosts} localhost ${optionalString cfg.enableIPv6 '' - ::1 ${maybeFQDN} ${userLocalHosts6} localhost + ::1 ${userLocalHosts6} localhost ''} ${otherHosts} ${cfg.extraHosts}