mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-27 15:54:58 +08:00
23 lines
482 B
Nix
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
|
|
];
|
|
}
|