fix(ai): match the wired NIC by prefix, not by name

Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
Ryan Yin authored and ryan4yin | 二花 committed 2026-10-14 20:15:01 +08:00
1 parent 55b7741108
commit 492dcb13fe
6 files changed
+46 -9

No files matched your search

+2 -1
View File
@@ -34,7 +34,8 @@ in
xdg.configFile."niri/niri-hardware.kdl".source =
mkSymlink "${config.home.homeDirectory}/nix-config/hosts/idols-ai/niri-hardware.kdl";
# Keep Noctalia's network widgets on the physical uplink, not the Mihomo TUN.
# Keep Noctalia's network widgets on the physical uplink, not the Mihomo TUN
# (the interface name is in ./idols-ai/noctalia.toml and `hostsAddr.ai.iface`).
xdg.configFile."noctalia/host-ai.toml".source = ./idols-ai/noctalia.toml;
# The desktop speakers are already loud, so use the broadcast-standard -23 dB.
+5 -2
View File
@@ -1,6 +1,9 @@
# The default total counts packets on both Mihomo's TUN and the physical uplink.
# Noctalia matches an exact name and takes no pattern, so the wired NIC is named
# here and in `hostsAddr.ai.iface`; `idols-ai-net` asserts each widget separately.
# networkd itself matches the `en*` prefix.
[widget.net_rx]
interface = "enp130s0"
interface = "enp4s0"
[widget.net_tx]
interface = "enp130s0"
interface = "enp4s0"