nixos-config/nixos/server/wakeonlan.nix
Sridhar Ratnakumar f0c0513fe3 Rm redundant args
2023-07-15 11:49:19 -04:00

23 lines
482 B
Nix

{ pkgs, ... }:
{
services.tlp = {
settings = {
# https://wiki.archlinux.org/title/Wake-on-LAN#Enable_WoL_in_TLP
WOL_DISABLE = "N";
};
};
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
];
}