File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ <h2 id="defining-an-emulated-nixos-system"><a class="header" href="#defining-an-
196196 };
197197
198198 outputs = { self, nixpkgs, microvm }: {
199- emulated-dev = nixpkgs.lib.nixosSystem {
199+ nixosConfigurations. emulated-dev = nixpkgs.lib.nixosSystem {
200200 # host system
201201 system = "x86_64-linux";
202202 modules = let
@@ -207,9 +207,9 @@ <h2 id="defining-an-emulated-nixos-system"><a class="header" href="#defining-an-
207207 crossSystem.config = guestSystem;
208208 };
209209 in [
210- {nixpkgs.crossSystem.config = guestSystem;}
211210 microvm.nixosModules.microvm
212211 {
212+ nixpkgs.crossSystem.config = guestSystem;
213213 microvm = {
214214 # you can choose what CPU will be emulated by qemu
215215 cpu = "cortex-a53";
@@ -224,7 +224,7 @@ <h2 id="defining-an-emulated-nixos-system"><a class="header" href="#defining-an-
224224 };
225225}
226226</ code > </ pre >
227- < p > You can run the example with < code > nix run .#emulated-dev.config.microvm.declaredRunner</ code > .</ p >
227+ < p > You can run the example with < code > nix run .#nixosConfigurations. emulated-dev.config.microvm.declaredRunner</ code > .</ p >
228228< p > As shown in this example, you can use system packages on the guest
229229system by using nixpkgs with a proper < code > crossSystem</ code > configuration.</ p >
230230
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ <h2 id="defining-an-emulated-nixos-system"><a class="header" href="#defining-an-
462462 };
463463
464464 outputs = { self, nixpkgs, microvm }: {
465- emulated-dev = nixpkgs.lib.nixosSystem {
465+ nixosConfigurations. emulated-dev = nixpkgs.lib.nixosSystem {
466466 # host system
467467 system = "x86_64-linux";
468468 modules = let
@@ -473,9 +473,9 @@ <h2 id="defining-an-emulated-nixos-system"><a class="header" href="#defining-an-
473473 crossSystem.config = guestSystem;
474474 };
475475 in [
476- {nixpkgs.crossSystem.config = guestSystem;}
477476 microvm.nixosModules.microvm
478477 {
478+ nixpkgs.crossSystem.config = guestSystem;
479479 microvm = {
480480 # you can choose what CPU will be emulated by qemu
481481 cpu = "cortex-a53";
@@ -490,7 +490,7 @@ <h2 id="defining-an-emulated-nixos-system"><a class="header" href="#defining-an-
490490 };
491491}
492492</ code > </ pre >
493- < p > You can run the example with < code > nix run .#emulated-dev.config.microvm.declaredRunner</ code > .</ p >
493+ < p > You can run the example with < code > nix run .#nixosConfigurations. emulated-dev.config.microvm.declaredRunner</ code > .</ p >
494494< p > As shown in this example, you can use system packages on the guest
495495system by using nixpkgs with a proper < code > crossSystem</ code > configuration.</ p >
496496< div style ="break-before: page; page-break-before: always; "> </ div > < h1 id ="microvm-output-options "> < a class ="header " href ="#microvm-output-options "> MicroVM output options</ a > </ h1 >
You can’t perform that action at this time.
0 commit comments