mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
add ollama
This commit is contained in:
parent
f02cd9865f
commit
72c17ae18e
4 changed files with 38 additions and 0 deletions
|
|
@ -47,6 +47,7 @@
|
|||
"modules/services/lubelogger"
|
||||
"modules/services/trilium"
|
||||
"modules/services/umami"
|
||||
"modules/services/ollama/nginx.nix" # Just host the nginx path back to Parzival
|
||||
])
|
||||
];
|
||||
|
||||
|
|
@ -118,6 +119,7 @@
|
|||
"budget.wanderingcrow.net" = {};
|
||||
"matrix.wanderingcrow.net" = {};
|
||||
"ta.wanderingcrow.net" = {};
|
||||
"chat.wanderingcrow.net" = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
"hosts/common/optional/bluetooth.nix"
|
||||
"hosts/common/optional/pentesting.nix"
|
||||
"hosts/common/optional/gaming.nix"
|
||||
"modules/services/ollama"
|
||||
])
|
||||
];
|
||||
|
||||
|
|
|
|||
19
modules/services/ollama/default.nix
Normal file
19
modules/services/ollama/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
loadModels = [];
|
||||
acceleration = "rocm";
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [3000];
|
||||
|
||||
services.nextjs-ollama-llm-ui = {
|
||||
enable = true;
|
||||
port = 3000;
|
||||
hostname = "0.0.0.0";
|
||||
};
|
||||
}
|
||||
16
modules/services/ollama/nginx.nix
Normal file
16
modules/services/ollama/nginx.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"chat.wanderingcrow.net" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "chat.wanderingcrow.net";
|
||||
locations."/" = {
|
||||
proxyPass = "http://192.168.0.72:3000";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue