1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #35026 from alesguzik/acpid_log_events

nixos/acpid: add option to log events
This commit is contained in:
Franz Pletz 2018-02-23 04:36:33 +00:00 committed by GitHub
commit 6180eda1e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,12 @@ in
description = "Whether to enable the ACPI daemon.";
};
logEvents = mkOption {
type = types.bool;
default = false;
description = "Log all event activity.";
};
handlers = mkOption {
type = types.attrsOf (types.submodule {
options = {
@ -142,7 +148,7 @@ in
ConditionPathExists = [ "/proc/acpi" ];
};
script = "acpid --confdir ${acpiConfDir}";
script = "acpid ${optionalString config.services.acpid.logEvents "--logevents"} --confdir ${acpiConfDir}";
};
};