snowhawk: wakeOnLan
This commit is contained in:
parent
5c94d8d809
commit
d415e110e8
1 changed files with 11 additions and 0 deletions
|
@ -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 a new issue