fix: ollama models on renaultft

feat: homeassistant ollama
This commit is contained in:
Patrick 2025-01-08 17:46:44 +01:00
parent b2256f2459
commit e3229aee41
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
4 changed files with 18 additions and 5 deletions

View file

@ -32,6 +32,7 @@
"esphome" "esphome"
#"zha" #"zha"
"mqtt" "mqtt"
"ollama"
]; ];
config = { config = {
http = { http = {
@ -86,6 +87,9 @@
"${nodes.${globals.services.adguardhome.host}.config.wireguard.services.ipv4}" = [ "${nodes.${globals.services.adguardhome.host}.config.wireguard.services.ipv4}" = [
"adguardhome.internal" "adguardhome.internal"
]; ];
"${nodes.${globals.services.ollama.host}.config.wireguard.services.ipv4}" = [
"ollama.internal"
];
}; };
age.secrets."home-assistant-secrets.yaml" = { age.secrets."home-assistant-secrets.yaml" = {
rekeyFile = "${config.node.secretsDir}/secrets.yaml.age"; rekeyFile = "${config.node.secretsDir}/secrets.yaml.age";

View file

@ -117,7 +117,7 @@ in
recommendedSetup = true; recommendedSetup = true;
virtualHosts."${globals.services.netbird.domain}".useACMEHost = "web"; virtualHosts."${globals.services.netbird.domain}".useACMEHost = "web";
upstreams.fritz = { upstreams.fritz = {
servers."${lib.net.cidr.host 1 "10.99.2.0/24"}" = { }; servers."${lib.net.cidr.host 1 "10.99.2.0/24"}:443" = { };
extraConfig = '' extraConfig = ''
zone fritz 64k ; zone fritz 64k ;
keepalive 5 ; keepalive 5 ;

View file

@ -1,11 +1,16 @@
{ config, ... }: { config, globals, ... }:
{ {
wireguard.services = { wireguard.services = {
client.via = "nucnix"; client.via = "nucnix";
firewallRuleForNode.nucnix-nginx.allowedTCPPorts = [ config.services.open-webui.port ]; firewallRuleForNode.${globals.services.nginx.host}.allowedTCPPorts = [
config.services.open-webui.port
];
firewallRuleForNode.${globals.services.homeassistant.host}.allowedTCPPorts = [
config.services.ollama.port
];
}; };
services.ollama = { services.ollama = {
host = "localhost"; host = "0.0.0.0";
port = 3001; port = 3001;
enable = true; enable = true;
}; };
@ -34,6 +39,8 @@
directory = "/var/lib/private/open-webui"; directory = "/var/lib/private/open-webui";
mode = "0700"; mode = "0700";
} }
];
environment.persistence."/renaultft".directories = [
{ {
directory = "/var/lib/private/ollama"; directory = "/var/lib/private/ollama";
mode = "0700"; mode = "0700";

View file

@ -115,7 +115,9 @@
// mkContainer "oauth2-proxy" { } // mkContainer "oauth2-proxy" { }
// mkContainer "vaultwarden" { } // mkContainer "vaultwarden" { }
// mkContainer "ddclient" { } // mkContainer "ddclient" { }
// mkContainer "ollama" { } // mkContainer "ollama" {
enableRenaultFT = true;
}
// mkContainer "murmur" { } // mkContainer "murmur" { }
// mkContainer "homebox" { } // mkContainer "homebox" { }
// mkContainer "invidious" { } // mkContainer "invidious" { }