From 08452e06cc4421c4700d842b9eecb05a3d821e7e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Apr 2026 21:08:21 +0000 Subject: [PATCH] feat: enable mDNS (Avahi) and local reverse proxy for sovransystemsos.local Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/4159c571-2bfb-48fc-a6bc-e0765ef88ef6 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- configuration.nix | 14 ++++++++++++-- modules/core/caddy.nix | 8 ++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index d738c70..f9f7bb6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -28,15 +28,25 @@ }; # ── Networking ────────────────────────────────────────────── - networking.hostName = "nixos"; + networking.hostName = "sovransystemsos"; 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; } ]; + # ── mDNS / Avahi (sovransystemsos.local) ────────────────── + services.avahi = { + enable = true; + nssmdns4 = true; + publish = { + enable = true; + addresses = true; + }; + }; + # ── Locale / Time ────────────────────────────────────────── time.timeZone = "America/Los_Angeles"; i18n.defaultLocale = "en_US.UTF-8"; diff --git a/modules/core/caddy.nix b/modules/core/caddy.nix index 8293f12..f7d0e76 100755 --- a/modules/core/caddy.nix +++ b/modules/core/caddy.nix @@ -145,6 +145,14 @@ $HAVEN { EOF fi + # ── Sovran Hub (LAN mDNS access) ──────────────── + cat >> /run/caddy/Caddyfile <> /run/caddy/Caddyfile <