flake update

This commit is contained in:
Sascha Koenig
2025-12-23 09:25:17 +01:00
parent f529c59400
commit 436928b187
6 changed files with 47 additions and 43 deletions

View File

@@ -12,12 +12,12 @@ in {
config = mkIf cfg.enable {
services.ollama = {
enable = true;
acceleration =
package =
if config.services.xserver.videoDrivers == ["amdgpu"]
then "rocm"
then pkgs.ollama-rocm
else if config.services.xserver.videoDrivers == ["nvidia"]
then "cuda"
else null;
then pkgs.ollama-cuda
else pkgs.ollama-cpu;
host = "[::]";
openFirewall = true;
environmentVariables = {