From c6fc7033d2919d47d301a082d4b1dfff1c434172 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Sun, 5 Dec 2021 15:02:29 +0300 Subject: [PATCH] UPS: shutdown later --- machines/AMD-Workstation/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/machines/AMD-Workstation/default.nix b/machines/AMD-Workstation/default.nix index 2d67688..06b3f82 100644 --- a/machines/AMD-Workstation/default.nix +++ b/machines/AMD-Workstation/default.nix @@ -20,9 +20,18 @@ ram = 32; }; deviceSpecific.isHost = true; - services.apcupsd.enable = true; boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + services.apcupsd = { + enable = false; + configText = '' + UPSTYPE usb + NISIP 127.0.0.1 + BATTERYLEVEL 10 + MINUTES 1 + ''; + }; + secrets.wireguard-wg0 = { }; environment.sessionVariables.WINEPREFIX = "/home/balsoft/.local/share/wineprefixes/default";