Merge pull request #39 from naturallaw777/copilot/revert-hostname-mdns-caddy-changes
Revert hostName/mDNS/Caddy .local changes; restore flake-rebuild compatibility
This commit is contained in:
@@ -28,25 +28,18 @@
|
||||
};
|
||||
|
||||
# ── Networking ──────────────────────────────────────────────
|
||||
networking.hostName = "sovransystemsos";
|
||||
# NOTE: hostName must remain "nixos" to match the nixosConfigurations key in
|
||||
# flake.nix. Changing it breaks flake-based remote upgrades with:
|
||||
# error: does not provide attribute 'nixosConfigurations."<hostname>"'
|
||||
networking.hostName = "nixos";
|
||||
networking.networkmanager.enable = true;
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 8448 3051 ];
|
||||
networking.firewall.allowedUDPPorts = [ 80 443 8448 3051 5353 ];
|
||||
networking.firewall.allowedUDPPorts = [ 80 443 8448 3051 ];
|
||||
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";
|
||||
|
||||
@@ -145,14 +145,6 @@ $HAVEN {
|
||||
EOF
|
||||
fi
|
||||
|
||||
# ── Sovran Hub (LAN mDNS access) ────────────────
|
||||
cat >> /run/caddy/Caddyfile <<EOF
|
||||
|
||||
http://sovransystemsos.local {
|
||||
reverse_proxy localhost:8937
|
||||
}
|
||||
EOF
|
||||
|
||||
# ── RTL (LAN access) ────────────────────────────
|
||||
cat >> /run/caddy/Caddyfile <<EOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user