File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,20 @@ Or for a version closer to `nixos-shell`:
282282nix run .#nixosConfigurations.<yourmachine>.config.system.build.nixos-shell
283283```
284284
285+ ## Running different architectures / operating systems i.e. Linux on MacOS
286+
287+ It's possible to specify a different architecture using ` --guest-system ` .
288+ This requires your host system to have a either a remote builder
289+ (i.e. [ darwin-builder] ( https://github.com/NixOS/nixpkgs/blob/master/doc/packages/darwin-builder.section.md ) on macOS)
290+ or beeing able to run builds in emulation
291+ for the guest system (` boot.binfmt.emulatedSystems ` on NixOS.).
292+
293+ Here is an example for macOS (arm) that will run an aarch64-linux vm:
294+
295+ ```
296+ $ nixos-shell --guest-system aarch64-linux examples/vm.nix
297+ ```
298+
285299## More configuration
286300
287301Have a look at the [ virtualisation] options NixOS provides.
You can’t perform that action at this time.
0 commit comments