summaryrefslogtreecommitdiff
path: root/Biz/Bild/Nixpkgs.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-10-25 02:10:20 -0400
committerBen Sima <ben@bsima.me>2024-12-21 10:06:48 -0500
commit8ceebbdb53ea5c67310a5281c30f53c9cf504d70 (patch)
tree17ef6c8bbe37959202ff3a77401f255573336dd1 /Biz/Bild/Nixpkgs.nix
parent9293fd18d4df5383bb596fabbc6a0f2f7a46923e (diff)
Use newer ollama in system service
Ollama releases often, and nixos-24.05 has a very old version, it was preventing me from doing work. Here I'm putting the newer nixos unstable as an overlay into the 24.05 version so I can backpull versions as needed.
Diffstat (limited to 'Biz/Bild/Nixpkgs.nix')
-rw-r--r--Biz/Bild/Nixpkgs.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/Biz/Bild/Nixpkgs.nix b/Biz/Bild/Nixpkgs.nix
index d53a125..212e3f1 100644
--- a/Biz/Bild/Nixpkgs.nix
+++ b/Biz/Bild/Nixpkgs.nix
@@ -24,13 +24,20 @@ let
(import ./Python.nix)
(import ./Haskell.nix)
];
-in {
- nixos-24_05 = import sources.nixos-24_05 {
- inherit system config overlays;
-
- };
nixos-unstable-small =
import sources.nixos-unstable-small { inherit system config overlays; };
+in {
+ nixos-24_05 = import sources.nixos-24_05 {
+ inherit system config;
+ overlays = overlays ++ [
+ (_: _: {
+ # backport newer packages from unstable
+ unstable = nixos-unstable-small.pkgs;
+ })
+ ];
+ };
+
+ inherit nixos-unstable-small;
}