diff --git a/hosts/snowhawk/configuration.nix b/hosts/snowhawk/configuration.nix index 7d573e5..0ea0138 100644 --- a/hosts/snowhawk/configuration.nix +++ b/hosts/snowhawk/configuration.nix @@ -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 = [ ... ];