NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.59k stars 13.07k forks source link

Documentation: WakeOnLan depdendency is not clear to users #323956

Open zalphoid opened 2 weeks ago

zalphoid commented 2 weeks ago

Problem

Its not clear to users that networking.interfaces.<name>.wakeOnLan requires systemd-networkd

Proposal

Relocate the current wakeOnLan configuration setting to a subset of systemd.network and provide an alternative that creates a oneshot per interface to enable the policy the user specifies leveraging ethtool.

OR
  1. Update the documentation to state that it leverages systemd-networkd, for example, Whether to enable wol on this interface using systemd-networkd.
  2. Add a dependency on systemd-networkd and warn users if they use wakeOnLan without it.

Checklist


Add a :+1: reaction to issues you find important.

eclairevoyant commented 2 weeks ago

networking.interfaces.<name>.wakeOnLan requires systemd-networkd

What makes you believe that?

https://github.com/NixOS/nixpkgs/blob/6afb255d976f85f3359e4929abd6f5149c323a02/nixos/modules/tasks/network-interfaces.nix#L1437-L1445

zalphoid commented 2 weeks ago

WOL isn't working on my system and I don't have systemd-networkd enabled.

If not systemd-networkd what else reads /etc/systemd/network/40-eth0.link?