services.acpid.handlers
Event handlers.
Handler can be a single command.
- Type
attribute set of (submodule)- Default
{ }- Example
{ ac-power = { action = '' vals=($1) # space separated string to array of multiple values case ''${vals[3]} in 00000000) echo unplugged >> /tmp/acpi.log ;; 00000001) echo plugged in >> /tmp/acpi.log ;; *) echo unknown >> /tmp/acpi.log ;; esac ''; event = "ac_adapter/*"; }; }- Declared
- <nixpkgs/nixos/modules/services/hardware/acpid.nix>