server: add ollama

This commit is contained in:
Kabbone 2024-04-06 08:39:22 +02:00
parent 7bdc00290e
commit 893d31d52c
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
2 changed files with 25 additions and 1 deletions

View File

@ -17,7 +17,8 @@
./nextcloud.nix
./matrix.nix
./coturn.nix
#./jitsi.nix
./jitsi.nix
#./ollama.nix
]
# picom, polybar and sxhkd are pulled from desktop module

View File

@ -0,0 +1,23 @@
{ config, pkgs, ... }:
let
ollamahostname = "llm.kabtop.de";
in
{
services.ollama = {
enable = true;
listenAddress = "127.0.0.1:11434";
};
services.nginx = {
virtualHosts = {
ollamahostname = {
enableACME = true;
forceSSL = true;
listen = [ {
addr = "127.0.0.1"; port = 11434;
} ];
};
};
};
}