Open zvm_node's Ollama port 11434 to the home network (Off Grid AI finds it there)

This commit is contained in:
Nexoniarz 2026-11-02 00:28:48 +01:00
commit 118d3b4313

View file

@ -1,10 +1,11 @@
{ config, lib, pkgs, ... }:
# My machines working together at home: SSH (keys only) and ZeroVRAM's zvm_node (port 8080),
# both reachable from the home network only — not from other networks the laptop joins.
# My machines working together at home: SSH (keys only) and ZeroVRAM's zvm_node (port 8080,
# and 11434 where apps look for Ollama, e.g. Off Grid AI on the phone), reachable from the home
# network only — not from other networks the laptop joins.
let
homeLan = "192.168.1.0/24";
homePorts = [ 22 8080 ]; # SSH, zvm_node
homePorts = [ 22 8080 11434 ]; # SSH, zvm_node, zvm_node as an Ollama server
rule = op: port: "iptables ${op} nixos-fw -p tcp -s ${homeLan} --dport ${toString port} -j nixos-fw-accept";
in
{