Merge pull request #292171 from abysssol/fix-ollama-service

nixos/ollama: replace incorrect use of overrideAttrs
This commit is contained in:
Pol Dellaiera 2024-02-28 23:42:43 +01:00 committed by GitHub
commit eb3cc6f463
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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