From 10330a6e37d28b80d5002bd9b7f37348321be85f Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 26 Jan 2024 20:27:47 +0100 Subject: [PATCH] feat: enable upowerd/poweralterd --- configuration.nix | 6 ++++++ home-manager/sway/default.nix | 2 ++ 2 files changed, 8 insertions(+) diff --git a/configuration.nix b/configuration.nix index ab0dc7b..3bef0cc 100644 --- a/configuration.nix +++ b/configuration.nix @@ -47,6 +47,12 @@ networking.networkmanager.enable = true; + services.upower = { + enable = true; + percentageCritical = 5; + criticalPowerAction = "HybridSleep"; + }; + programs = { appgate-sdp.enable = true; zsh.enable = true; diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index 93e2851..a86cf25 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -60,6 +60,8 @@ in services.swayosd.enable = true; + services.poweralertd.enable = true; + wayland.windowManager.sway = { enable = true;