Skip to content

Commit

Permalink
Add buildShell note in advanced configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
srhb authored and adamtulinius committed May 27, 2020
1 parent c3c7adb commit 1e6b62d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ It is currently possible to have expressions like `"test \"$(systemctl list-unit
Note: these options apply to an entire deployment and are *not* configurable on per-host basis.
The default is an empty set, meaning that the nix configuration is inherited from the build environment. See `man nix.conf`.

**network.buildShell**
By passing `--allow-build-shell` and setting `network.buildShell` to a nix-shell compatible derivation (eg. `pkgs.mkShell ...`), it's possible to make morph execute builds from within the defined shell. This makes it possible to have arbitrary dependencies available during the build, say for use with nix build hooks. Be aware that the shell can potentially execute any command on the local system.

**special deployment options:**

(per-host granularity)
Expand Down

0 comments on commit 1e6b62d

Please sign in to comment.