tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/acpid: add option to log events
Ales Huzik
8 years ago
444cdf04
9b25b934
+7
-1
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
hardware
acpid.nix
+7
-1
nixos/modules/services/hardware/acpid.nix
···
53
53
description = "Whether to enable the ACPI daemon.";
54
54
};
55
55
56
56
+
logEvents = mkOption {
57
57
+
type = types.bool;
58
58
+
default = false;
59
59
+
description = "Log all event activity.";
60
60
+
};
61
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
145
-
script = "acpid --confdir ${acpiConfDir}";
151
151
+
script = "acpid ${optionalString config.services.acpid.logEvents "--logevents"} --confdir ${acpiConfDir}";
146
152
};
147
153
148
154
};