nix: make nix.nixPath merge by default

Since named entries can be overridden now based on ordering now merging
is only a problem for removing one of the default search paths, in which
case a higher priority eg. mkForce can be used.

	{
	  nix.nixPath = [{ darwin-config = "/darwin.nix"; }];
	}

Will result in

	[ "darwin-config=/darwin.nix" "/nix/var/nix/profiles/per-user/root/channels" "$HOME/.nix-defexpr/channels" ]

Fixes #137
This commit is contained in:
Daiderd Jordan 2019-05-01 12:42:31 +02:00
parent 4d235b800d
commit 58aa5bf185
No known key found for this signature in database
GPG key ID: D02435D05B810C96
4 changed files with 12 additions and 5 deletions

View file

@ -22,7 +22,7 @@
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 3;
system.stateVersion = 4;
# You should generally set this to the total number of logical cores in your system.
# $ sysctl -n hw.ncpu