From 40e87731e0ae20e5ec117e484867569352e25119 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 11 Sep 2019 17:37:59 +0800 Subject: [PATCH] nixbld: enable UPS monitoring --- nixbld-etc-nixos/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 32d1f37..d6ace75 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -77,6 +77,14 @@ in # List services that you want to enable: + services.apcupsd.enable = true; + services.apcupsd.configText = '' + UPSTYPE usb + NISIP 127.0.0.1 + BATTERYLEVEL 10 + MINUTES 5 + ''; + # Enable the OpenSSH daemon. services.openssh.enable = true; services.openssh.forwardX11 = true;