Skip to content

Commit e2748ed

Browse files
authored
Add flakes as experimental feature to Nix config (#607)
* Add flakes as experimental feature to Nix config * Document parallel builds * typo
1 parent db60f65 commit e2748ed

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

modules/contributor/pages/testing-on-kubernetes.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,17 @@ If you don't want to run an arbitrary shellscript directly from the web, have a
3434

3535
After this is done you also need to add a setting to your Nix config in `/etc/nix/nix.conf`:
3636
----
37-
experimental-features = nix-command
37+
experimental-features = nix-command flakes
3838
----
3939

40+
It is also recommended to enable parallel builds by also adding the following configs:
41+
----
42+
max-jobs = 24
43+
cores = 8
44+
----
45+
46+
Please adjust the number of `cores` to your system and set the `max-jobs` to e.g. the third of that.
47+
4048
Just installing Nix does not affect your system much, as it keeps all its configuration and installed packages separate from other package managers and you won't even notice it is there, unless you actually start using it.
4149

4250
== Using

0 commit comments

Comments
 (0)