readd ai to galadriel

This commit is contained in:
Adrian Gunnar Lauterer 2024-04-19 16:54:53 +02:00
parent c801e79f5e
commit 5bd7a34fca
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
../../profiles/base.nix ../../profiles/base.nix
../../profiles/sops.nix ../../profiles/sops.nix
#../../profiles/ai.nix ../../profiles/ai.nix
../../services/smb.nix ../../services/smb.nix
../../services/torrent.nix ../../services/torrent.nix

View File

@ -5,13 +5,13 @@
]; ];
services.ollama.enable = true; services.ollama.enable = true;
services.ollama.listenAddress = "0.0.0.0:11434"; services.ollama.listenAddress = "http://0.0.0.0:11434";
services.ollama.models = "/var/lib/ollama/models"; services.ollama.models = "/var/lib/ollama/models";
services.ollama.home = "/var/lib/ollama"; services.ollama.home = "/var/lib/ollama";
#possibly a flawed idea. #possibly a flawed idea.
services.ollama.acceleration = lib.mkDefault ( let services.ollama.acceleration = lib.mkDefault ( let
hostname = config.networking.hostname; hostname = config.networking.hostName;
in in
if hostname == "galadriel" then "cuda" if hostname == "galadriel" then "cuda"
else if hostname == "aragorn" then "rocm" else if hostname == "aragorn" then "rocm"