mirror of
https://github.com/Nexoniarz/nexoniarz-config-nixos.git
synced 2026-11-03 04:24:27 +00:00
Open zvm_node's Ollama port 11434 to the home network (Off Grid AI finds it there)
This commit is contained in:
parent
7222ac8202
commit
118d3b4313
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue