mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
nixos/ollama: replace incorrect use of overrideAttrs
The bug prevents nixos from compiling if the ollama service is built with cuda enabled.
This commit is contained in:
parent
31a3ee0c19
commit
8720397720
|
@ -5,7 +5,7 @@ let
|
|||
cfg = config.services.ollama;
|
||||
ollamaPackage = cfg.package.override {
|
||||
inherit (cfg) acceleration;
|
||||
linuxPackages = config.boot.kernelPackages.overrideAttrs {
|
||||
linuxPackages = config.boot.kernelPackages // {
|
||||
nvidia_x11 = config.hardware.nvidia.package;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue