diff options
author | Ales Huzik <me@aguzik.net> | 2018-02-16 14:07:28 +1100 |
---|---|---|
committer | Ales Huzik <me@aguzik.net> | 2018-02-21 22:17:33 +1100 |
commit | 444cdf0454495919538d8d7e1484fe84ccbec2e3 (patch) | |
tree | 8e23485a7f0b2eda8cc96ba43c08e510603619aa | |
parent | 9b25b9347d97caf55732213dbf45653f866f8114 (diff) | |
download | nixlib-444cdf0454495919538d8d7e1484fe84ccbec2e3.tar nixlib-444cdf0454495919538d8d7e1484fe84ccbec2e3.tar.gz nixlib-444cdf0454495919538d8d7e1484fe84ccbec2e3.tar.bz2 nixlib-444cdf0454495919538d8d7e1484fe84ccbec2e3.tar.lz nixlib-444cdf0454495919538d8d7e1484fe84ccbec2e3.tar.xz nixlib-444cdf0454495919538d8d7e1484fe84ccbec2e3.tar.zst nixlib-444cdf0454495919538d8d7e1484fe84ccbec2e3.zip |
nixos/acpid: add option to log events
-rw-r--r-- | nixos/modules/services/hardware/acpid.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/acpid.nix b/nixos/modules/services/hardware/acpid.nix index f69706ebff34..0f05876aee32 100644 --- a/nixos/modules/services/hardware/acpid.nix +++ b/nixos/modules/services/hardware/acpid.nix @@ -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}"; }; }; |