nixos/acpid: add option to log events

+7 -1
+7 -1
nixos/modules/services/hardware/acpid.nix
··· 53 53 description = "Whether to enable the ACPI daemon."; 54 54 }; 55 55 56 + logEvents = mkOption { 57 + type = types.bool; 58 + default = false; 59 + description = "Log all event activity."; 60 + }; 61 + 56 62 handlers = mkOption { 57 63 type = types.attrsOf (types.submodule { 58 64 options = { ··· 142 148 ConditionPathExists = [ "/proc/acpi" ]; 143 149 }; 144 150 145 - script = "acpid --confdir ${acpiConfDir}"; 151 + script = "acpid ${optionalString config.services.acpid.logEvents "--logevents"} --confdir ${acpiConfDir}"; 146 152 }; 147 153 148 154 };