Silly nixpkgs mirror, totally harmless :3
Find a file
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
doc Fix the installer tests 2013-07-17 13:01:12 +02:00
gui renaming all occurrences of /var/run/{booted,current}-system 2012-07-23 14:01:35 -04:00
lib Fix the installer tests 2013-07-17 13:01:12 +02:00
maintainers Update to use NixOps in stead on charon, use copy_image method for copying to other regions. 2013-06-05 18:12:20 +02:00
modules apcupsd-service: add services.apcupsd.hooks option 2013-07-22 14:19:21 +02:00
tests Fix the misc test 2013-07-17 19:24:27 +02:00
.gitignore Ignore .version-suffix file created by nixos-rebuild 2013-01-16 10:12:42 -05:00
.version Bump the NixOS version number to 13.07 2013-07-17 13:34:40 +02:00
COPYING
default.nix Parameterise the path to nixpkgs. 2013-01-28 16:11:44 +01:00
README
release-combined.nix release-combined: Remove maintainers from everything but `tested' 2013-04-05 13:59:43 -04:00
release.nix Disable the trac test 2013-07-17 15:28:36 +02:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.