Make hostname in tests overridable

The original form effectively forbade any NixOS configuration that is under
test to explicitly set the hostname.
This commit is contained in:
Nikola Knezevic 2019-08-07 10:31:13 +02:00
parent 8ac6b77eff
commit d0ef94258d

View file

@ -67,7 +67,7 @@ rec {
in
{ key = "ip-address";
config =
{ networking.hostName = m.fst;
{ networking.hostName = mkDefault m.fst;
networking.interfaces = listToAttrs interfaces;