Merge pull request #35026 from alesguzik/acpid_log_events
nixos/acpid: add option to log events
This commit is contained in:
commit
6180eda1e4
@ -53,6 +53,12 @@ in
|
|||||||
description = "Whether to enable the ACPI daemon.";
|
description = "Whether to enable the ACPI daemon.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
logEvents = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Log all event activity.";
|
||||||
|
};
|
||||||
|
|
||||||
handlers = mkOption {
|
handlers = mkOption {
|
||||||
type = types.attrsOf (types.submodule {
|
type = types.attrsOf (types.submodule {
|
||||||
options = {
|
options = {
|
||||||
@ -142,7 +148,7 @@ in
|
|||||||
ConditionPathExists = [ "/proc/acpi" ];
|
ConditionPathExists = [ "/proc/acpi" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
script = "acpid --confdir ${acpiConfDir}";
|
script = "acpid ${optionalString config.services.acpid.logEvents "--logevents"} --confdir ${acpiConfDir}";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user