* Handle the case where networking.hostName is empty.

svn path=/nixos/trunk/; revision=27510
This commit is contained in:
Eelco Dolstra 2011-06-21 10:46:21 +00:00
parent 59355bafe5
commit a2ad688a63

View File

@ -13,7 +13,10 @@ with pkgs.lib;
let
vmName = config.networking.hostName;
vmName =
if config.networking.hostName == ""
then "noname"
else config.networking.hostName;
options = {