diff --git a/pkgs/by-name/ol/ollama/package.nix b/pkgs/by-name/ol/ollama/package.nix index 86d8a0dd01392..78eda05aaf570 100644 --- a/pkgs/by-name/ol/ollama/package.nix +++ b/pkgs/by-name/ol/ollama/package.nix @@ -218,9 +218,7 @@ goBuild { service-cuda = nixosTests.ollama-cuda; service-rocm = nixosTests.ollama-rocm; }; - - updateScript = nix-update-script { }; - }; + } // lib.optionalAttrs (!enableRocm && !enableCuda) { updateScript = nix-update-script { }; }; meta = { description =