diff options
| author | yokai <accounts.8ef6c@simplelogin.com> | 2026-08-04 16:58:39 -0500 |
|---|---|---|
| committer | yokai <accounts.8ef6c@simplelogin.com> | 2026-08-04 16:58:39 -0500 |
| commit | b47ca1475decf1a98f10231f0cbeebfb75e7f6ea (patch) | |
| tree | 5869f3f7c04c5f52dd22e5c639d9858fde71d427 /machines/kusanagi | |
| parent | b9fd1ff561be58fa9d0fa03180a1a239e47550b5 (diff) | |
common: share LAN discovery settings
Move ping and Avahi/mDNS configuration into a shared LAN discovery module so kusanagi and enzo both publish their .local names, resolve each other on the LAN, and answer ping.
Keep mDNS scoped to the shared Wi-Fi interface instead of using Avahi's global firewall helper.
Assisted-by: OpenAI:gpt-5
Diffstat (limited to 'machines/kusanagi')
| -rw-r--r-- | machines/kusanagi/desktop.nix | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/machines/kusanagi/desktop.nix b/machines/kusanagi/desktop.nix index 8e1eb8c..44b9c81 100644 --- a/machines/kusanagi/desktop.nix +++ b/machines/kusanagi/desktop.nix @@ -22,21 +22,6 @@ drivers = with pkgs; [ gutenprint ]; }; - # mDNS: publish kusanagi.local and resolve *.local LAN names. - # Keep the firewall opening scoped to the Wi-Fi LAN interface. - networking.firewall.interfaces.wlp8s0.allowedUDPPorts = [ 5353 ]; - services.avahi = { - enable = true; - nssmdns4 = true; - openFirewall = false; - allowInterfaces = [ "wlp8s0" ]; - publish = { - enable = true; - addresses = true; - workstation = true; - }; - }; - # prevent auto-mounting optical disks services.udisks2.enable = true; |
