helix ++ + llm.nx2.site trying

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-05-08 02:13:08 +02:00
parent 8d1a58d42c
commit 2db49fe4c6
3 changed files with 22 additions and 13 deletions

View File

@@ -1,12 +1,16 @@
{ config, pkgs, lib, system, user, allowed, secrets, ... }:
{ config, pkgs, lib, system, user, host, allowed, secrets, ... }:
{
environment.systemPackages = with pkgs; [
ollama
];
services.ollama.environmentVariables = {
OLLAMA_ORIGINS = "*";
};
systemd.services.ollama = {
environment.OLLAMA_ORIGINS = "*";
description = "Ollama Service";
after = [ "network-online.target" "ollama-doesnt-respect-xdg-data-home.service" ];
serviceConfig = {
@@ -36,4 +40,4 @@
chown ollama:ollama -R /usr/share/ollama
'';
};
}
}