fix(nixos): wol broken

This commit is contained in:
2026-01-17 15:17:12 +01:00
parent 5533696aad
commit 47d462ba76
2 changed files with 22 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env nu
ls /sys/class/net | get name | path basename | where $it != "lo" | each {|iface|
print $"Enabling WoL on ($iface)..."
try {
ethtool -s $iface wol g
print $"Successfully enabled WoL on ($iface)"
} catch {
print $"Failed to enable WoL on ($iface). It might not be supported."
}
}