about summary refs log tree commit diff
path: root/nixos/modules/services/misc
diff options
context:
space:
mode:
authorabysssol <abysssol@pm.me>2024-02-28 16:47:27 -0500
committerabysssol <abysssol@pm.me>2024-02-28 17:15:30 -0500
commit87203977204d1c3a7c7ccd39147b17dadf3156e8 (patch)
tree7337414ec32deb10d82a4d115721c59a18bc0d31 /nixos/modules/services/misc
parent31a3ee0c19e6cc335dd4bb3ad09af2297ea427e5 (diff)
downloadnixlib-87203977204d1c3a7c7ccd39147b17dadf3156e8.tar
nixlib-87203977204d1c3a7c7ccd39147b17dadf3156e8.tar.gz
nixlib-87203977204d1c3a7c7ccd39147b17dadf3156e8.tar.bz2
nixlib-87203977204d1c3a7c7ccd39147b17dadf3156e8.tar.lz
nixlib-87203977204d1c3a7c7ccd39147b17dadf3156e8.tar.xz
nixlib-87203977204d1c3a7c7ccd39147b17dadf3156e8.tar.zst
nixlib-87203977204d1c3a7c7ccd39147b17dadf3156e8.zip
nixos/ollama: replace incorrect use of overrideAttrs
The bug prevents nixos from compiling
if the ollama service is built with cuda enabled.
Diffstat (limited to 'nixos/modules/services/misc')
-rw-r--r--nixos/modules/services/misc/ollama.nix2
1 files changed, 1 insertions, 1 deletions
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;
     };
   };