···327327 default = false;
328328 description = lib.mdDoc "Whether to enable wol on this interface.";
329329 };
330330+ policy = mkOption {
331331+ type = with types; listOf (
332332+ enum ["phy" "unicast" "multicast" "broadcast" "arp" "magic" "secureon"]
333333+ );
334334+ default = ["magic"];
335335+ description = lib.mdDoc ''
336336+ The [Wake-on-LAN policy](https://www.freedesktop.org/software/systemd/man/systemd.link.html#WakeOnLan=)
337337+ to set for the device.
338338+339339+ The options are
340340+ - `phy`: Wake on PHY activity
341341+ - `unicast`: Wake on unicast messages
342342+ - `multicast`: Wake on multicast messages
343343+ - `broadcast`: Wake on broadcast messages
344344+ - `arp`: Wake on ARP
345345+ - `magic`: Wake on receipt of a magic packet
346346+ '';
347347+ };
330348 };
331349 };
332350