readd ai to galadriel
This commit is contained in:
parent
c801e79f5e
commit
5bd7a34fca
|
@ -15,7 +15,7 @@
|
|||
|
||||
../../profiles/base.nix
|
||||
../../profiles/sops.nix
|
||||
#../../profiles/ai.nix
|
||||
../../profiles/ai.nix
|
||||
|
||||
../../services/smb.nix
|
||||
../../services/torrent.nix
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
];
|
||||
|
||||
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.home = "/var/lib/ollama";
|
||||
|
||||
#possibly a flawed idea.
|
||||
services.ollama.acceleration = lib.mkDefault ( let
|
||||
hostname = config.networking.hostname;
|
||||
hostname = config.networking.hostName;
|
||||
in
|
||||
if hostname == "galadriel" then "cuda"
|
||||
else if hostname == "aragorn" then "rocm"
|
||||
|
|
Loading…
Reference in New Issue