File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 58
58
isFlake = flake != null ;
59
59
guestConfig = if isFlake
60
60
then flake . nixosConfigurations . ${ name } . config
61
- else microvmConfig . config . config ;
61
+ else if microvmConfig . evaluatedConfig != null
62
+ then microvmConfig . evaluatedConfig . config
63
+ else microvmConfig . config . config ;
62
64
runner = guestConfig . microvm . declaredRunner ;
63
65
in
64
66
{
Original file line number Diff line number Diff line change 25
25
vms = mkOption {
26
26
type = with types ; attrsOf ( submodule ( { config , name , ... } : {
27
27
options = {
28
+ evaluatedConfig = mkOption {
29
+ description = ''
30
+ An already evaluated configuration of this MicroVM.
31
+ Allows supplying an already evaluated configuration or an alternative configuration evaluation function instead of NixOS's default eval-config.
32
+ '' ;
33
+ default = null ;
34
+ type = nullOr types . unspecified ;
35
+ } ;
36
+
28
37
config = mkOption {
29
38
description = ''
30
39
A specification of the desired configuration of this MicroVM,
You can’t perform that action at this time.
0 commit comments