Compare commits
2 Commits
393bbe21b4
...
8dc2ee3d54
| Author | SHA1 | Date | |
|---|---|---|---|
|
8dc2ee3d54
|
|||
|
0e856624b4
|
@@ -52,6 +52,7 @@
|
|||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
service_configs.ports.https
|
service_configs.ports.https
|
||||||
|
80
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [
|
networking.firewall.allowedUDPPorts = [
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
service_configs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
services.ollama = {
|
|
||||||
enable = true;
|
|
||||||
home = service_configs.ollama.data_dir + "/home";
|
|
||||||
models = config.services.ollama.home + "/models";
|
|
||||||
environmentVariables = {
|
|
||||||
OLLAMA_LLM_LIBRARY = "cpu_avx2";
|
|
||||||
};
|
|
||||||
host = "0.0.0.0";
|
|
||||||
port = service_configs.ports.ollama;
|
|
||||||
user = "ollama";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user