mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 12:30:36 -05:00
nix.conf: enable parallel building (#90)
This is a sensible default given Docker images are often used for CI and build jobs.
This commit is contained in:
@@ -12,6 +12,7 @@ docker-nixpkgs.nix.override {
|
||||
text = ''
|
||||
accept-flake-config = true
|
||||
experimental-features = nix-command flakes
|
||||
max-jobs = auto
|
||||
'';
|
||||
})
|
||||
] ++ extraContents;
|
||||
|
||||
@@ -84,11 +84,12 @@ let
|
||||
mkdir -p libexec/nix
|
||||
ln -s /bin/nix libexec/nix/build-remote
|
||||
|
||||
# Enable flakes
|
||||
# Enable flakes and parallel building
|
||||
mkdir -p etc/nix
|
||||
cat <<NIX_CONFIG > etc/nix/nix.conf
|
||||
accept-flake-config = true
|
||||
experimental-features = nix-command flakes
|
||||
max-jobs = auto
|
||||
NIX_CONFIG
|
||||
|
||||
# Add run-as-user script
|
||||
|
||||
Reference in New Issue
Block a user