nixpkgs/modules/services
Bjørn Forsman 44f1a8d8c7 Add apcupsd service
apcupsd is a daemon for controlling APC UPSes. It is very simple to
configure. If you have an USB based UPS, the default settings should be
useable without further adjustments:

  services.apcupsd.enable = true;

This will give you autodetection of USB UPSes, network access limited to
localhost (for security) and the shutdown sequence will be started when
the system when the battery level is below 50 percent, or when the UPS
has calculated that it has 5 minutes or less of remaining power-on time.

You can provide your own configuration file contents with this option:

  services.apcupsd.configText = "contents of apcupsd.conf";

Bug/annoyance 1: When apcupsd calls "wall" (on powerfail etc. events),
it prints an error message because stdout is not connected to a tty (it
is connected to the journal):

  wall: cannot get tty name: Inappropriate ioctl for device

The message still gets through though, to ctrl-alt-f[1-6] terminals.

Bug/annoyance 2: apcupsd tries to call "mail" (on powerfail etc.
events), and that fails because I'm not passing in any mail program at
the moment (because that would require more configuration options). A
solution to this would be to simply let the user fully configure the
apcupsd event handling logic in nix.
2013-07-17 21:23:09 +02:00
..
amqp rabbitmq.nix: Set SYS_PREFIX empty so files live in /var 2013-04-19 10:49:46 -04:00
audio
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
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 Updated disnix to latest 0.3 release 2013-06-27 15:32:49 +02:00
monitoring Add apcupsd service 2013-07-17 21:23:09 +02:00
network-filesystems Start sm-notify/statd atfer nfsd 2013-07-16 13:48:52 +02:00
networking wpa_supplicant: Fix wlan interface detection on Linux 3.4 2013-07-15 13:54:15 +02:00
printing
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 Start httpd synchronously 2013-07-09 15:08:48 +02:00
x11 Merge branch 'master' into x-updates 2013-05-29 23:32:05 +02:00