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
"${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda"
declared in: nixos/modules/config/power-management.nixView source on NixOS/nixpkgs →