diff options
Diffstat (limited to 'Biz/Bild/Nixpkgs.nix')
-rw-r--r-- | Biz/Bild/Nixpkgs.nix | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Biz/Bild/Nixpkgs.nix b/Biz/Bild/Nixpkgs.nix index e6d7d01..dff44a0 100644 --- a/Biz/Bild/Nixpkgs.nix +++ b/Biz/Bild/Nixpkgs.nix @@ -1,10 +1,21 @@ let sources = import ./Sources.nix { sourcesFile = ./Sources.json; }; -in -import sources.nixpkgs { + + config = { + allowBroken = true; + allowUnfree = true; + cudaSupport = true; + }; + system = __currentSystem; + +in import sources.nixpkgs-stable { + inherit system config; overlays = [ (_: _: { inherit sources; }) + (_: _: { unstable = import sources.nixpkgs-unstable { + inherit system config; + };}) (_: pkgs: { # Given a generic `builder`, will generate an attrset for all the packages # pinned by `deps` with `builder` applied to the package. This attrset can @@ -29,9 +40,5 @@ import sources.nixpkgs { (import ./Deps.nix) (_: pkgs: { niv = import pkgs.sources.niv {}; }) ]; - config = { - allowBroken = true; - allowUnfree = true; - cudaSupport = true; - }; } + |