on master help sign in
Merge pull request #83 from alexfmpe/per-platform-sandboxing

Add per-platform sandboxing instructions

commit8a259627be2dab5ff83966c066a8448995fe08e6 authorRyan Trinkle <ryan.trinkle@gmail.com> dateThu 26 Jul 2018, 13:51 (8 years ago) parent0827f9baf6556d
1 file changed+13−6
README.md+13−6
README.md+13−6
@@ -22,15 +22,22 @@ Obelisk provides an easy way to develop and deploy your [Reflex](https://github.
2222 ```
2323 1. If you are using another operating system or linux distribution, ensure that these lines are present in `/etc/nix/nix.conf`:
2424 ```
25− sandbox = true
2625 substituters = https://cache.nixos.org https://nixcache.reflex-frp.org
2726 trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=
2827 ```
29− * If you are on MacOS, restart the nix daemon
30− ```
31− sudo launchctl stop org.nixos.nix-daemon
32− sudo launchctl start org.nixos.nix-daemon
33− ```
28+ * other Linux: enable sandboxing (see https://github.com/obsidiansystems/obelisk/issues/6)
29+ ```
30+ sandbox = true
31+ ```
32+ * MacOS: disable sandboxing (there are still some impure dependencies for now)
33+ ```
34+ sandbox = false
35+ ```
36+ then restart the nix daemon
37+ ```
38+ sudo launchctl stop org.nixos.nix-daemon
39+ sudo launchctl start org.nixos.nix-daemon
40+ ```
34411. Install obelisk: `nix-env -f https://github.com/obsidiansystems/obelisk/archive/master.tar.gz -iA command`
3542
3643### Contributing to Obelisk