services.autosuspend.settings.wakeup_cmd

NixOS option

The command to execute for scheduling a wake up of the system. The given string is processed using Python’s str.format() and a format argument called timestamp encodes the UTC timestamp of the planned wake up time (float). Additionally iso can be used to acquire the timestamp in ISO 8601 format.

type: string
Default
"sh -c 'echo 0 > /sys/class/rtc/rtc0/wakealarm && echo {timestamp:.0f} > /sys/class/rtc/rtc0/wakealarm' "
declared in: nixos/modules/services/misc/autosuspend.nixView source on NixOS/nixpkgs →