From d0ef94258dff16549846575ef217e1af2644e53c Mon Sep 17 00:00:00 2001 From: Nikola Knezevic Date: Wed, 7 Aug 2019 10:31:13 +0200 Subject: [PATCH] Make hostname in tests overridable The original form effectively forbade any NixOS configuration that is under test to explicitly set the hostname. --- nixos/lib/build-vms.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/lib/build-vms.nix b/nixos/lib/build-vms.nix index 6c92aa1ffa2f..b622a4d59e89 100644 --- a/nixos/lib/build-vms.nix +++ b/nixos/lib/build-vms.nix @@ -67,7 +67,7 @@ rec { in { key = "ip-address"; config = - { networking.hostName = m.fst; + { networking.hostName = mkDefault m.fst; networking.interfaces = listToAttrs interfaces;