Skip to content

Commit 0954d1a

Browse files
[DDW-874] Update README with nix.conf for Apple M1 (only for development purposes) (#2792)
* [DDW-874] Update README with nix.conf for Apple M1 * [DDW-874] Update README - simplify nix.conf for M1 chip * [DDW-874] Update README nix.conf Co-authored-by: Daniel Main <daniel.main.cernhoff@icloud.com>
1 parent 4af81f2 commit 0954d1a

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,25 @@ Daedalus - Cryptocurrency Wallet
2626
```
2727
and then add the following lines:
2828
```
29+
build-users-group = nixbld
30+
31+
max-jobs = auto
32+
cores = 0
33+
sandbox = false
34+
35+
require-sigs = true
36+
trusted-users = root
37+
allowed-users = *
38+
2939
substituters = https://hydra.iohk.io https://cache.nixos.org/
3040
trusted-substituters =
3141
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
32-
max-jobs = 2 # run at most two builds at once
33-
cores = 0 # the builder will use all available CPU cores
34-
extra-sandbox-paths = /System/Library/Frameworks
42+
extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib
43+
44+
# If you are running on a Mac with M1 chip please uncomment 'system' setting to enforce running on Rosetta2
45+
# system = x86_64-darwin
3546
```
47+
3648
3. Run `nix-shell` with correct list of arguments or by using existing `package.json` scripts to load a shell with all the correct versions of all the required dependencies for development.
3749

3850
**Notes:**

0 commit comments

Comments
 (0)