1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

cuda: build ollama

This commit is contained in:
2026-02-15 16:43:21 +01:00
parent 86b5e4da9f
commit fb86f8c7f7

View File

@@ -1,3 +1,4 @@
{ pkgs, ... }:
{
nixpkgs.config = {
allowUnfree = true;
@@ -21,7 +22,14 @@
};
};
services.ollama = {
enable = true;
acceleration = "cuda"; # Force it to use the MX150
package = pkgs.ollama-cuda;
};
nix.settings.system-features = [ "cuda" ];
nixpkgs.config.cudaCapabilities = [ "6.1" ];
programs.nix-required-mounts = {
enable = true;