git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/acpid: add option to log events
commit444cdf0454495919538d8d7e1484fe84ccbec2e3 authorAles Huzik <me@aguzik.net> dateFri 16 Feb 2018, 14:07 (9 years ago) parent9b25b93
1 file changed+7−1
nixos/modules/services/hardware/acpid.nix+7−1
nixos/modules/services/hardware/acpid.nix+7−1
@@ -53,6 +53,12 @@ in
5353 description = "Whether to enable the ACPI daemon.";
5454 };
5555
56+ logEvents = mkOption {
57+ type = types.bool;
58+ default = false;
59+ description = "Log all event activity.";
60+ };
61+
5662 handlers = mkOption {
5763 type = types.attrsOf (types.submodule {
5864 options = {
@@ -142,7 +148,7 @@ in
142148 ConditionPathExists = [ "/proc/acpi" ];
143149 };
144150
145− script = "acpid --confdir ${acpiConfDir}";
151+ script = "acpid ${optionalString config.services.acpid.logEvents "--logevents"} --confdir ${acpiConfDir}";
146152 };
147153
148154 };