fix: ollama models on renaultft
feat: homeassistant ollama
This commit is contained in:
parent
b2256f2459
commit
e3229aee41
|
@ -32,6 +32,7 @@
|
|||
"esphome"
|
||||
#"zha"
|
||||
"mqtt"
|
||||
"ollama"
|
||||
];
|
||||
config = {
|
||||
http = {
|
||||
|
@ -86,6 +87,9 @@
|
|||
"${nodes.${globals.services.adguardhome.host}.config.wireguard.services.ipv4}" = [
|
||||
"adguardhome.internal"
|
||||
];
|
||||
"${nodes.${globals.services.ollama.host}.config.wireguard.services.ipv4}" = [
|
||||
"ollama.internal"
|
||||
];
|
||||
};
|
||||
age.secrets."home-assistant-secrets.yaml" = {
|
||||
rekeyFile = "${config.node.secretsDir}/secrets.yaml.age";
|
||||
|
|
|
@ -117,7 +117,7 @@ in
|
|||
recommendedSetup = true;
|
||||
virtualHosts."${globals.services.netbird.domain}".useACMEHost = "web";
|
||||
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 = ''
|
||||
zone fritz 64k ;
|
||||
keepalive 5 ;
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
{ config, ... }:
|
||||
{ config, globals, ... }:
|
||||
{
|
||||
wireguard.services = {
|
||||
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 = {
|
||||
host = "localhost";
|
||||
host = "0.0.0.0";
|
||||
port = 3001;
|
||||
enable = true;
|
||||
};
|
||||
|
@ -34,6 +39,8 @@
|
|||
directory = "/var/lib/private/open-webui";
|
||||
mode = "0700";
|
||||
}
|
||||
];
|
||||
environment.persistence."/renaultft".directories = [
|
||||
{
|
||||
directory = "/var/lib/private/ollama";
|
||||
mode = "0700";
|
||||
|
|
|
@ -115,7 +115,9 @@
|
|||
// mkContainer "oauth2-proxy" { }
|
||||
// mkContainer "vaultwarden" { }
|
||||
// mkContainer "ddclient" { }
|
||||
// mkContainer "ollama" { }
|
||||
// mkContainer "ollama" {
|
||||
enableRenaultFT = true;
|
||||
}
|
||||
// mkContainer "murmur" { }
|
||||
// mkContainer "homebox" { }
|
||||
// mkContainer "invidious" { }
|
||||
|
|
Loading…
Reference in a new issue