snowhawk: wakeOnLan
parent
5c94d8d809
commit
d415e110e8
|
@ -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 = [ ... ];
|
||||
|
|
Loading…
Reference in New Issue