mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:29:24 +08:00
modules.services.ollama: fix pull
This commit is contained in:
@@ -4,7 +4,12 @@ inputs:
|
||||
{ type = types.nullOr (types.submodule {}); default = null; };
|
||||
config = let inherit (inputs.config.nixos.services) ollama; in inputs.lib.mkIf (ollama != null)
|
||||
{
|
||||
services.ollama = { enable = true; host = "0.0.0.0"; };
|
||||
services.ollama =
|
||||
{
|
||||
enable = true;
|
||||
host = "0.0.0.0";
|
||||
environmentVariables = { OLLAMA_REGISTRY_MAXSTREAMS = "2"; OLLAMA_EXPERIMENT= "client2"; };
|
||||
};
|
||||
nixos.packages.packages._packages = [ inputs.pkgs.oterm ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user