Merge pull request #40 from naturallaw777/copilot/add-avahi-service-for-sovran-hub

Use Avahi hostName override for sovransystemsos.local mDNS without changing system hostname
This commit is contained in:
Sovran_Systems
2026-04-03 19:41:36 -05:00
committed by GitHub
2 changed files with 19 additions and 1 deletions

View File

@@ -35,11 +35,21 @@
networking.networkmanager.enable = true;
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ 80 443 8448 3051 ];
networking.firewall.allowedUDPPorts = [ 80 443 8448 3051 ];
networking.firewall.allowedUDPPorts = [ 80 443 8448 3051 5353 ];
networking.firewall.allowedUDPPortRanges = [
{ from = 49152; to = 65535; }
];
# ── Avahi (mDNS) ───────────────────────────────────────────
# Advertise as sovransystemsos.local on the LAN without changing the system
# hostname (which must remain "nixos" for flake compatibility — see above).
services.avahi = {
enable = true;
hostName = "sovransystemsos";
nssmdns4 = true;
publish = { enable = true; addresses = true; };
};
# ── Locale / Time ──────────────────────────────────────────
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";

View File

@@ -145,6 +145,14 @@ $HAVEN {
EOF
fi
# Sovran Hub (LAN access via mDNS)
cat >> /run/caddy/Caddyfile <<EOF
http://sovransystemsos.local {
reverse_proxy localhost:8937
}
EOF
# RTL (LAN access)
cat >> /run/caddy/Caddyfile <<EOF