Refactor ollama service

This commit is contained in:
♥ Minnie ♥ 2024-07-26 09:01:05 +08:00
parent 89dff37210
commit a91a056c28
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
3 changed files with 10 additions and 6 deletions

View file

@ -69,12 +69,6 @@
mouse = { accelProfile = "flat"; };
};
# Get up and running with large language models locally.
ollama = {
enable = true;
acceleration = "rocm";
};
# Enable a few other services.
ratbagd.enable = true;
pcscd.enable = true;

View file

@ -4,6 +4,7 @@
imports = [
./amdgpu-clocks.nix
./flatpak.nix
./ollama.nix
./xserver.nix
];
}

View file

@ -0,0 +1,9 @@
{ ... }:
{
# Get up and running with large language models locally.
services.ollama = {
enable = true;
acceleration = "rocm";
};
}