Skip to content

Instantly share code, notes, and snippets.

{ lib }:
{
# Converts given object to TOML text.
toTOML =
let
toInlinePair = name: value: "${builtins.toJSON name} = ${toPlainTOMLValue value}";
toPlainTOMLValue = value:
if lib.isList value then
diff --git a/machine.go b/machine.go
index 4399029..ddb3be2 100644
--- a/machine.go
+++ b/machine.go
@@ -27,7 +27,7 @@ const (
ErrCouldNotConvertMachineInterface = Error("failed to convert machine interface")
ErrHostnameTooLong = Error("Hostname too long")
ErrDifferentRegisteredNamespace = Error("machine was previously registered with a different namespace")
- MachineGivenNameHashLength = 8
+ MachineGivenNameHashLength = 0