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:
abysssol 2024-02-28 16:47:27 -05:00
parent 31a3ee0c19
commit 8720397720

View File

@ -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;
};
};