refactor: combine scripted and networkd WakeOnLan config

This commit is contained in:
Majiir Paktu
2023-10-07 21:02:46 -04:00
parent d290c309f4
commit f5f1751b1f
3 changed files with 10 additions and 12 deletions

View File

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