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

+4 -2
View File
@@ -44,8 +44,10 @@ rec {
# monitoring skip those entries.
hostsAddr = {
ai = {
# Desktop PC
iface = "enp130s0";
# Desktop PC. `iface` is only for the two consumers that need one exact name
# — mihomo's DNS takeover hook and the Noctalia net-speed widget; networkd
# matches the wired interface by its `en*` prefix (hosts/idols-ai/default.nix).
iface = "enp4s0";
ipv4 = "192.168.5.100";
ipv6 = "fe80::10"; # Link-local Address
};