snowhawk: wakeOnLan

main
Zynh Ludwig 2024-07-25 04:43:44 -07:00
parent 5c94d8d809
commit d415e110e8
1 changed files with 11 additions and 0 deletions

View File

@ -114,6 +114,17 @@
services.avahi.enable = true;
systemd.services.wakeonlan = {
description = "reenable wakeonlan every boot";
after = [ "network.target" ];
serviceConfig = {
Type = "simple";
RemainAfterExit = "true";
ExecStart = "${pkgs.ethtool}/sbin/ethtool -s enp7s0 wol g";
};
wantedBy = [ "default.target" ];
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];