From 824d086586a4f9ed56da4e5b0485060c5dc8fe74 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 30 Oct 2021 18:37:36 -0400 Subject: [PATCH] Automatically enable wakeonon --- features/server/wakeonlan.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/features/server/wakeonlan.nix b/features/server/wakeonlan.nix index 6641ad9..2ab3535 100644 --- a/features/server/wakeonlan.nix +++ b/features/server/wakeonlan.nix @@ -8,7 +8,16 @@ }; }; + networking.interfaces."enp0s31f6".wakeOnLan.enable = true; + environment.systemPackages = with pkgs; [ + # ethtool can be used to manually enable wakeOnLan, eg: + # + # sudo ethtool -s enp0s31f6 wol g + # + # on verify its status: + # + # sudo ethtool enp0s31f6 | grep Wake-on ethtool ]; }