|
12 | 12 | # The VM-side configuration is in appvm-base.nix, created via mkAppVm in profiles. |
13 | 13 | # |
14 | 14 | # Extension Pattern: |
15 | | -# ALL values (name, ramMb, borderColor, applications, etc.) should be defined ONLY |
| 15 | +# ALL values (name, mem, borderColor, applications, etc.) should be defined ONLY |
16 | 16 | # in the mkAppVm call. Host-level options automatically read from |
17 | 17 | # evaluatedConfig.config.ghaf.appvm.vmDef. This eliminates duplication. |
18 | 18 | # |
|
59 | 59 | evaluatedConfig = finalEvaluatedConfig; |
60 | 60 | # Derive values from vmDef - the attrset key is used as fallback for name |
61 | 61 | name = vmDef.name or attrName; |
62 | | - ramMb = vmDef.ramMb or 4096; |
| 62 | + mem = vmDef.mem or 4096; |
63 | 63 | balloonRatio = vmDef.balloonRatio or 2; |
64 | 64 | borderColor = vmDef.borderColor or null; |
65 | 65 | applications = vmDef.applications or [ ]; |
|
139 | 139 | description = '' |
140 | 140 | Read-only attrset of enabled VMs with all values derived from evaluatedConfig. |
141 | 141 | Use this instead of accessing vms directly when you need derived values |
142 | | - like vtpm, applications, ramMb, etc. |
| 142 | + like vtpm, applications, mem, etc. |
143 | 143 | ''; |
144 | 144 | }; |
145 | 145 |
|
|
148 | 148 | App VM configurations. Each VM must have evaluatedConfig set via mkAppVm. |
149 | 149 |
|
150 | 150 | Extension Pattern: |
151 | | - - ALL values (name, ramMb, borderColor, applications, vtpm, etc.) |
| 151 | + - ALL values (name, mem, borderColor, applications, vtpm, etc.) |
152 | 152 | are derived from evaluatedConfig.config.ghaf.appvm.vmDef |
153 | 153 | - You only need to set 'enable' and 'evaluatedConfig' here |
154 | 154 | - Use 'extensions' to add modules from external features (e.g., ghaf-intro) |
|
0 commit comments