From b405b7212743a9412626234443c85960473f4ac2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 2 Jan 2022 22:38:29 +0100 Subject: vidhar: apcupsd --- hosts/vidhar/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 727985bd..b9a4ba29 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -223,5 +223,15 @@ ]; }; }; + + services.apcupsd = { + enable = true; + configText = '' + UPSTYPE usb + NISIP 127.0.0.1 + BATTERYLEVEL 10 + MINUTES 5 + ''; + }; }; } -- cgit v1.2.3