powerManagement.powerDownCommands
NixOS option
Commands executed when the machine powers down. That is, they’re executed both when the system shuts down and when it goes to suspend or hibernation.
type: strings concatenated with "\n"Default
""
Example
declared in: nixos/modules/config/power-management.nixView source on NixOS/nixpkgs →"${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda"