modules(system.services.ollama): Set acceleration in gpu conf

This commit is contained in:
Florian RICHER 2025-04-02 21:09:02 +02:00
parent cda0d66117
commit de5f89f526
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
3 changed files with 7 additions and 3 deletions

View file

@ -12,6 +12,10 @@ in
};
config = mkIf cfg.enable {
boot.initrd.kernelModules = [ "amdgpu" ];
# Set acceleration to rocm
services.ollama.acceleration = "rocm";
# Load amdgpu driver for Xorg and Wayland
services.xserver = {
enable = true;