diff options
author | Ben Sima <ben@bsima.me> | 2024-03-28 20:32:24 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2024-03-28 21:32:24 -0400 |
commit | d56f05863d789423ff785cec654155d8495373a9 (patch) | |
tree | c13435019d1e076cdd21fcb1bd13e85790ffcb1f /Biz/Bild/Nixpkgs.nix | |
parent | 1fbb0b47130a64e8c7c5c5b0128eadc31bf1282c (diff) |
Add nixpkgs unstable as an overlay
There are just too many packages that I need that are in nixpkgs unstable and
aren't in the release branches. Using it as an overlay like this means I can
just refer to the packages I want from unstable without pulling in all the
changes.
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; - }; } + |