flake-update-20260201
1# Local DNS zone for sbr.pm - uses local IPs (192.168.1.x) with VPN fallback
2{ dns, globals, ... }:
3let
4 # Helper to get local IP, fallback to VPN IP
5 getLocalMachineIP =
6 machine:
7 let
8 localIps = machine.net.ips or [ ];
9 vpnIps = machine.net.vpn.ips or [ ];
10 ips = if localIps != [ ] then localIps else vpnIps;
11 in
12 if builtins.isList ips then builtins.head ips else ips;
13in
14import ./sbr.pm-common.nix {
15 inherit dns globals;
16 getIPForMachine = getLocalMachineIP;
17}