nixos/acpid: add option to log events
This commit is contained in:
parent
9b25b9347d
commit
444cdf0454
1 changed files with 7 additions and 1 deletions
|
@ -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}";
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue