ips readjustments to add workstation to wireguard

This commit is contained in:
Danilo Reyes
2026-02-15 13:34:03 -06:00
parent 13a525ca12
commit a5f45292ff
5 changed files with 31 additions and 22 deletions

View File

@@ -6,6 +6,7 @@
}:
let
shellType = config.my.shell.type;
comfyuiPort = 8188;
krita-thumbnailer = pkgs.writeTextFile {
name = "krita-thumbnailer";
destination = "/share/thumbnailers/kra.thumbnailer";
@@ -58,8 +59,6 @@ in
allowedTCPPorts = [
6674 # ns-usbloader
8384 # syncthing
config.services.open-webui.port
config.services.sillytavern.port
];
allowedTCPPortRanges = [
{
@@ -67,6 +66,12 @@ in
to = 1764;
}
];
interfaces.wg0.allowedTCPPorts = [
config.services.ollama.port
config.services.open-webui.port
config.services.sillytavern.port
comfyuiPort
];
};
};
users = {
@@ -137,7 +142,7 @@ in
open-webui = {
enable = true;
port = 2345;
host = config.my.ips.workstation;
host = config.my.ips.wg-workstation;
};
scx = {
enable = true;
@@ -157,13 +162,14 @@ in
models = "/srv/ai/ollama";
user = "ollama";
group = "ai";
host = config.my.ips.wg-workstation;
};
sillytavern = {
enable = true;
group = "ai";
listen = true;
port = 9324;
listenAddressIPv4 = config.my.ips.workstation;
listenAddressIPv4 = config.my.ips.wg-workstation;
};
};
}