2023-04-15 14:31:39 +00:00
|
|
|
tailscale:
|
|
|
|
|
|
|
|
tailscale.overrideAttrs (old: {
|
|
|
|
postPatch = ''
|
|
|
|
${old.postPatch or ""}
|
|
|
|
|
|
|
|
# Always use the polling monitor on routers. The netlink-based monitor is
|
|
|
|
# effectively just a wakeup-every-250ms system which causes ridiculously
|
|
|
|
# high CPU.
|
2023-04-30 20:45:03 +00:00
|
|
|
rm net/netmon/netmon_linux.go
|
|
|
|
substituteInPlace net/netmon/netmon_polling.go \
|
2023-04-15 14:31:39 +00:00
|
|
|
--replace \
|
|
|
|
"//go:build (!linux && !freebsd && !windows && !darwin) || android" \
|
|
|
|
""
|
|
|
|
'';
|
|
|
|
})
|