|
14 | 14 | type = types.bool;
|
15 | 15 | default = false;
|
16 | 16 | description = ''
|
17 |
| - Enable if all your MicroVMs run with a Hypervisor that sends readiness notification over a VSOCK. |
| 17 | + Enable if all your MicroVMs run with a Hypervisor that sends |
| 18 | + readiness notification over a VSOCK. |
18 | 19 |
|
19 |
| - If one of your MicroVMs doesn't do this, its systemd service |
20 |
| - will not start up successfully. |
| 20 | + **Danger!** If one of your MicroVMs doesn't do this, its |
| 21 | + systemd service will not start up successfully! |
21 | 22 | '';
|
22 | 23 | };
|
23 | 24 |
|
|
32 | 33 | `systemd.services."microvm-tap-interfaces@%i.service".enable = false`
|
33 | 34 | '';
|
34 | 35 | example = ''
|
35 |
| - # Attach tap interface to bridge br0, and set it up |
36 |
| - ''${pkgs.iproute2}/bin/ip link set $id master br0 up |
| 36 | + # Attach tap interface to bridge br0, and bring it up |
| 37 | + ''${pkgs.iproute2}/bin/ip link set "$id" master br0 up |
37 | 38 | '';
|
38 | 39 | type = types.lines;
|
39 | 40 | };
|
|
74 | 75 | default = if config.pkgs != null then config.pkgs.path else pkgs.path;
|
75 | 76 | defaultText = literalExpression "pkgs.path";
|
76 | 77 | description = ''
|
77 |
| - This option is only respected when `config` is specified. |
78 |
| - The nixpkgs path to use for the MicroVM. Defaults to the host's nixpkgs. |
| 78 | + This option is only respected when `config` is |
| 79 | + specified. |
| 80 | +
|
| 81 | + The nixpkgs path to use for the MicroVM. Defaults to the |
| 82 | + host's nixpkgs. |
79 | 83 | '';
|
80 | 84 | };
|
81 | 85 |
|
|
85 | 89 | defaultText = literalExpression "pkgs";
|
86 | 90 | description = ''
|
87 | 91 | This option is only respected when `config` is specified.
|
88 |
| - The package set to use for the MicroVM. Must be a nixpkgs package set with the microvm overlay. Determines the system of the MicroVM. |
| 92 | +
|
| 93 | + The package set to use for the MicroVM. Must be a |
| 94 | + nixpkgs package set with the microvm overlay. Determines |
| 95 | + the system of the MicroVM. |
| 96 | +
|
89 | 97 | If set to null, a new package set will be instantiated.
|
90 | 98 | '';
|
91 | 99 | };
|
|
95 | 103 | default = {};
|
96 | 104 | description = ''
|
97 | 105 | This option is only respected when `config` is specified.
|
| 106 | +
|
98 | 107 | A set of special arguments to be passed to NixOS modules.
|
99 | 108 | This will be merged into the `specialArgs` used to evaluate
|
100 | 109 | the NixOS configurations.
|
|
105 | 114 | description = "Source flake for declarative build";
|
106 | 115 | type = nullOr path;
|
107 | 116 | default = null;
|
| 117 | + defaultText = literalExpression ''flakeInputs.my-infra''; |
108 | 118 | };
|
109 | 119 |
|
110 | 120 | updateFlake = mkOption {
|
111 |
| - description = "Source flake to store for later imperative update"; |
| 121 | + description = "Source flakeref to store for later imperative update"; |
112 | 122 | type = nullOr str;
|
113 | 123 | default = null;
|
| 124 | + defaultText = literalExpression ''"git+file:///home/user/my-infra"''; |
114 | 125 | };
|
115 | 126 |
|
116 | 127 | autostart = mkOption {
|
|
0 commit comments