architect: added LLM module
This commit is contained in:
parent
0da9f7ab9d
commit
b2cf092f78
38
hosts/architect/llm.nix
Normal file
38
hosts/architect/llm.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ config, ... }:
|
||||
|
||||
let
|
||||
domain = "pino.giugl.io";
|
||||
backendPort = 3000;
|
||||
frontendPort = 3002;
|
||||
in
|
||||
{
|
||||
architect.vhost.${domain} = {
|
||||
dnsInterfaces = [ "tailscale" ];
|
||||
|
||||
locations."/" = {
|
||||
host = "172.17.0.1";
|
||||
port = frontendPort;
|
||||
allowLan = true;
|
||||
allow = [ config.architect.networks."tailscale".net ];
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers = {
|
||||
containers = {
|
||||
big-agi = {
|
||||
image = "ghcr.io/enricoros/big-agi:main";
|
||||
autoStart = true;
|
||||
|
||||
ports = [
|
||||
"172.17.0.1:${toString frontendPort}:${toString backendPort}"
|
||||
];
|
||||
environmentFiles = [
|
||||
"/var/lib/llm/big-agi.env"
|
||||
];
|
||||
extraOptions = [
|
||||
"--pull=always"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user