···1463 ]
1464 ++ bridgeStp;
146500000000001466 # The network-interfaces target is kept for backwards compatibility.
1467 # New modules must NOT use it.
1468 systemd.targets.network-interfaces =
···1463 ]
1464 ++ bridgeStp;
14651466+ # Wake-on-LAN configuration is shared by the scripted and networkd backends.
1467+ systemd.network.links = pipe interfaces [
1468+ (filter (i: i.wakeOnLan.enable))
1469+ (map (i: nameValuePair "40-${i.name}" {
1470+ matchConfig.OriginalName = i.name;
1471+ linkConfig.WakeOnLan = concatStringsSep " " i.wakeOnLan.policy;
1472+ }))
1473+ listToAttrs
1474+ ];
1475+1476 # The network-interfaces target is kept for backwards compatibility.
1477 # New modules must NOT use it.
1478 systemd.targets.network-interfaces =