about summary refs log tree commit diff
path: root/nixos/lib/build-vms.nix
diff options
context:
space:
mode:
authorNikola Knezevic <nikola@knezevic.ch>2019-08-07 10:31:13 +0200
committerNikola Knezevic <nikola@knezevic.ch>2019-08-07 10:31:13 +0200
commitd0ef94258dff16549846575ef217e1af2644e53c (patch)
tree1bbead57542af94c392606dbf657e987a9d53c9f /nixos/lib/build-vms.nix
parent8ac6b77eff2975f4d0fef2d8c8f6b927cdd300ed (diff)
Make hostname in tests overridable
The original form effectively forbade any NixOS configuration that is under
test to explicitly set the hostname.
Diffstat (limited to 'nixos/lib/build-vms.nix')
-rw-r--r--nixos/lib/build-vms.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/build-vms.nix b/nixos/lib/build-vms.nix
index 6c92aa1ffa2f7..b622a4d59e89c 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;