nixos/networking: add the wakeonlan option

This commit is contained in:
legendofmiracles
2021-10-01 18:08:39 -06:00
parent 1f70bb3297
commit bb3ea37eee
4 changed files with 18 additions and 0 deletions

View File

@@ -61,6 +61,8 @@ let
MACAddress = i.macAddress;
} // optionalAttrs (i.mtu != null) {
MTUBytes = toString i.mtu;
} // optionalAttrs (i.wakeOnLan.enable == true) {
WakeOnLan = "magic";
};
};
in listToAttrs (map createNetworkLink interfaces);