* Handle the case where networking.hostName is empty.
svn path=/nixos/trunk/; revision=27510
This commit is contained in:
parent
59355bafe5
commit
a2ad688a63
@ -13,7 +13,10 @@ with pkgs.lib;
|
||||
|
||||
let
|
||||
|
||||
vmName = config.networking.hostName;
|
||||
vmName =
|
||||
if config.networking.hostName == ""
|
||||
then "noname"
|
||||
else config.networking.hostName;
|
||||
|
||||
options = {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user