ova: add cloneConfigExtra option

Customize virtualbox ovas to contain a clone config option giving some
useful hints.

Fixes #38429
This commit is contained in:
Matthew Bauer
2018-10-21 14:52:49 -05:00
parent 7c3f27dba9
commit 1902adb437
2 changed files with 47 additions and 0 deletions
+9
View File
@@ -48,6 +48,8 @@ let
{
imports = [ ${toString config.installer.cloneConfigIncludes} ];
${config.installer.cloneConfigExtra}
}
'';
@@ -73,6 +75,13 @@ in
'';
};
installer.cloneConfigExtra = mkOption {
default = "";
description = ''
Extra text to include in the cloned configuration.nix included in this
installer.
'';
};
};
config = {