Skip to content

Commit 207c17b

Browse files
committed
no assertion
1 parent facf5ee commit 207c17b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

modules/common/common.nix

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ in
9696
message = "VM '${vmName}' cannot override 'name'";
9797
}
9898

99-
{
100-
# Only the host can override the bridge nic name
101-
assertion = ("${vmName}" == "ghaf-host") || ((vmAttr.bridgeNicName or null) == null);
102-
message = "VM '${vmName}' cannot override 'bridgeNicName'";
103-
}
99+
# {
100+
# # Only the host can override the bridge nic name
101+
# assertion = ("${vmName}" == "ghaf-host") || ((vmAttr.bridgeNicName or null) == null);
102+
# message = "VM '${vmName}' cannot override 'bridgeNicName'";
103+
# }
104104

105-
{
106-
# Only the host cannot override the internal nic name and mac address
107-
assertion =
108-
if vmName == "ghaf-host" then (vmAttr.interfaceName == null && vmAttr.mac == null) else true;
109-
message = "VM '${vmName}' cannot override 'interfaceName' or 'mac'";
110-
}
105+
# {
106+
# # Only the host cannot override the internal nic name and mac address
107+
# assertion =
108+
# if vmName == "ghaf-host" then (vmAttr.interfaceName == null && vmAttr.mac == null) else true;
109+
# message = "VM '${vmName}' cannot override 'interfaceName' or 'mac'";
110+
# }
111111
]
112112
) (builtins.attrNames config.ghaf.common.extraNetworking.hosts)
113113
);

0 commit comments

Comments
 (0)