Skip to content

Commit e422b39

Browse files
committed
doc/cpu-emulation: fix example flake
1 parent 071e8c4 commit e422b39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/cpu-emulation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ settings:
3535
};
3636
3737
outputs = { self, nixpkgs, microvm }: {
38-
emulated-dev = nixpkgs.lib.nixosSystem {
38+
nixosConfigurations.emulated-dev = nixpkgs.lib.nixosSystem {
3939
# host system
4040
system = "x86_64-linux";
4141
modules = let
@@ -46,9 +46,9 @@ settings:
4646
crossSystem.config = guestSystem;
4747
};
4848
in [
49-
{nixpkgs.crossSystem.config = guestSystem;}
5049
microvm.nixosModules.microvm
5150
{
51+
nixpkgs.crossSystem.config = guestSystem;
5252
microvm = {
5353
# you can choose what CPU will be emulated by qemu
5454
cpu = "cortex-a53";
@@ -65,7 +65,7 @@ settings:
6565
```
6666

6767
You can run the example with `nix run
68-
.#emulated-dev.config.microvm.declaredRunner`.
68+
.#nixosConfigurations.emulated-dev.config.microvm.declaredRunner`.
6969

7070
As shown in this example, you can use system packages on the guest
7171
system by using nixpkgs with a proper `crossSystem` configuration.

0 commit comments

Comments
 (0)