From bb56774a54f9553258c3a107bd68ca3f20e1be60 Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Sun, 25 Jan 2009 15:48:35 +0000 Subject: [PATCH] Fix hostname (inverse test). svn path=/nixos/branches/fix-style/; revision=13851 --- system/system-options.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/system-options.nix b/system/system-options.nix index 97a9e05d4f5..b1688cdda80 100644 --- a/system/system-options.nix +++ b/system/system-options.nix @@ -287,7 +287,7 @@ in # Set the host name. Don't clear it if it's not configured in the # NixOS configuration, since it may have been set by dhclient in the # meantime. - ${if config.networking.hostName == "" then + ${if config.networking.hostName != "" then ''hostname "${config.networking.hostName}"'' else '' # dhclient won't do anything if the hostname isn't empty.