Skip to content

Commit

Permalink
fix: selectively use cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Dec 4, 2024
1 parent d4b11c7 commit 8db387e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flake-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,28 @@ let
inherit system;
config = {
allowUnfree = true;
cudaSupport = true;
cudaSupport = false;
};
overlays = lib.singleton (
final: prev: {
apptainer = prev.apptainer.override {
enableNvidiaContainerCli = false;
forceNvcCli = false;
};
ollama = final.unstable.ollama.override {
acceleration = "cuda";
};
system-manager = inputs.system-manager.packages.${system}.default;
nixglhost = inputs.nixglhost.packages.${system}.default;
stable = prev;
unstable = import inputs.nixpkgs-unstable {
inherit system;
config = {
allowUnfree = true;
cudaSupport = true;
cudaSupport = false;
};
};
inherit (final.unstable) uv;
inherit (final.unstable) uv open-webui;
}
);
};
Expand Down

0 comments on commit 8db387e

Please sign in to comment.