nixos/release*.nix: Clean nixpkgs sources by default

Currently, when building NixOS from a git clone, Nix has to copy
the entire repo at >1GB into the store by default. That is not
necessary and causes a dumping large path message.
If you need the old behaviour for some reason, you will have to
specify it by passing the path to your repo explicitly as the
nixpkgs argument like this:

--arg nixpkgs '{outPath = ./.; revCount = 56789; shortRev = "gfedcba"; }'

+1 -1
nixos/release-combined.nix
···
# and nixos-14.04). The channel is updated every time the ‘tested’ job
# succeeds, and all other jobs have finished (they may fail).
-
{ nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; }
+
{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; }
, stableBranch ? false
, supportedSystems ? [ "x86_64-linux" ]
, limitedSupportedSystems ? [ "i686-linux" ]
+1 -1
nixos/release-small.nix
···
# small subset of Nixpkgs, mostly useful for servers that need fast
# security updates.
-
{ nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; }
+
{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; }
, stableBranch ? false
, supportedSystems ? [ "x86_64-linux" ] # no i686-linux
}:
+1 -1
nixos/release.nix
···
-
{ nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; }
+
{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; }
, stableBranch ? false
, supportedSystems ? [ "x86_64-linux" "aarch64-linux" ]
}: