snowhawk: wakeOnLan

This commit is contained in:
Zynh Ludwig 2024-07-25 04:43:44 -07:00
parent 5c94d8d809
commit d415e110e8

View file

@ -114,6 +114,17 @@
services.avahi.enable = true; 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. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];