From 87203977204d1c3a7c7ccd39147b17dadf3156e8 Mon Sep 17 00:00:00 2001 From: abysssol Date: Wed, 28 Feb 2024 16:47:27 -0500 Subject: [PATCH] nixos/ollama: replace incorrect use of overrideAttrs The bug prevents nixos from compiling if the ollama service is built with cuda enabled. --- nixos/modules/services/misc/ollama.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/ollama.nix b/nixos/modules/services/misc/ollama.nix index 7784f3170cef..3ac3beb4de07 100644 --- a/nixos/modules/services/misc/ollama.nix +++ b/nixos/modules/services/misc/ollama.nix @@ -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; }; };