nixpkgs/modules/services
Bjørn Forsman dc61694d01 apcupsd-service: add services.apcupsd.hooks option
Each attribute in this option should name an apcupsd event and the
string value it contains will be executed in a shell in response to that
event. See "man apccontrol" for the list of events and what they
represent.

Now it is easy to hook into the apcupsd event system:

  services.apcupsd.hooks = {
    onbattery  = ''# shell commands to run when the onbattery event is emitted'';
    doshutdown = ''# shell commands to notify that the computer is shutting down'';
  };
2013-07-22 14:19:21 +02:00
..
amqp rabbitmq.nix: Set SYS_PREFIX empty so files live in /var 2013-04-19 10:49:46 -04:00
audio Merge hardware.pulseaudio and services.pulseaudio 2013-03-14 23:33:45 +01:00
backup bacula: add ExecReload 2013-05-18 13:29:54 +02:00
databases postgresql: Allow to specify recoveryConfig. 2013-07-14 05:23:46 +02:00
games strip trailing whitespace; no functional change 2011-09-14 18:20:50 +00:00
hardware adding sensor option to thinkfan 2013-05-03 03:28:04 +02:00
logging Don't set $TZ 2013-04-22 18:56:19 +02:00
mail Don't set $TZ 2013-04-22 18:56:19 +02:00
misc Allow specifying packages whose closures should be in the chroot 2013-07-19 11:21:05 -04:00
monitoring apcupsd-service: add services.apcupsd.hooks option 2013-07-22 14:19:21 +02:00
network-filesystems Start sm-notify/statd atfer nfsd 2013-07-16 13:48:52 +02:00
networking modules/services/networking/dhcpcd.nix: add "extraConfig" option 2013-07-22 14:16:13 +02:00
printing Add/fix systemd unit descriptions 2013-01-10 13:59:41 +01:00
scheduling atd: don't enable at daemon by default 2013-06-01 11:39:09 +02:00
security TOR: add obfsproxy support by default for TOR bridges 2013-06-04 13:03:37 +03:00
system nscd: Restart if /etc/hosts changes 2013-06-11 16:15:24 +02:00
torrent transmission: Add apparmor service dependency 2013-05-28 18:00:21 +00:00
ttys agetty: Add 57600 to the baud rate list. 2013-06-14 17:55:37 +02:00
web-servers Disable the trac test 2013-07-17 15:28:36 +02:00
x11 Merge branch 'master' into x-updates 2013-05-29 23:32:05 +02:00