summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2023-10-19 13:26:22 +0200
committerGitHub <noreply@github.com>2023-10-19 13:26:22 +0200
commit4b5b27c7ca864ab7984b26ddc6f6ac6fdccb3626 (patch)
treece618d633b73f5116a33bafdf3120972227a0f6a /doc
parent6be2c349a30fcb489a3153dd331e9df387ab6449 (diff)
parent508c310222b7f07ad9cf6752fdd5c1af59a37061 (diff)
downloadnixpkgs-4b5b27c7ca864ab7984b26ddc6f6ac6fdccb3626.tar
nixpkgs-4b5b27c7ca864ab7984b26ddc6f6ac6fdccb3626.tar.gz
nixpkgs-4b5b27c7ca864ab7984b26ddc6f6ac6fdccb3626.tar.bz2
nixpkgs-4b5b27c7ca864ab7984b26ddc6f6ac6fdccb3626.tar.lz
nixpkgs-4b5b27c7ca864ab7984b26ddc6f6ac6fdccb3626.tar.xz
nixpkgs-4b5b27c7ca864ab7984b26ddc6f6ac6fdccb3626.tar.zst
nixpkgs-4b5b27c7ca864ab7984b26ddc6f6ac6fdccb3626.zip
Merge pull request #260770 from hercules-ci/darwin-builder-observable
`darwin.linux-builder`: Make more observable
Diffstat (limited to 'doc')
-rw-r--r--doc/builders/special/darwin-builder.section.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/builders/special/darwin-builder.section.md b/doc/builders/special/darwin-builder.section.md
index 13d01a0e3af..e37fabe01a3 100644
--- a/doc/builders/special/darwin-builder.section.md
+++ b/doc/builders/special/darwin-builder.section.md
@@ -157,3 +157,17 @@ in the example below and rebuild.
 You may make any other changes to your VM in this attribute set. For example,
 you could enable Docker or X11 forwarding to your Darwin host.
 
+## Troubleshooting the generated configuration {#sec-darwin-builder-troubleshoot}
+
+The `linux-builder` package exposes the attributes `nixosConfig` and `nixosOptions` that allow you to inspect the generated NixOS configuration in the `nix repl`. For example:
+
+```
+$ nix repl --file ~/src/nixpkgs --argstr system aarch64-darwin
+
+nix-repl> darwin.linux-builder.nixosConfig.nix.package
+«derivation /nix/store/...-nix-2.17.0.drv»
+
+nix-repl> :p darwin.linux-builder.nixosOptions.virtualisation.memorySize.definitionsWithLocations
+[ { file = "/home/user/src/nixpkgs/nixos/modules/profiles/macos-builder.nix"; value = 3072; } ]
+
+```