From fdf68660fe8e194787d67a5aaafd5f62c5cdc4db Mon Sep 17 00:00:00 2001 From: buianhhuy96 <73339292+buianhhuy96@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:08:18 +0300 Subject: [PATCH] fix battery indicator issue on laptop (#58) - Fix an issue that the indicator show 0% battery - Add upower package as nwg-panel uses it for devices with 2+ batteries Signed-off-by: Anh Huy Bui --- modules/desktop/graphics/sway/nwg-panel/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/desktop/graphics/sway/nwg-panel/default.nix b/modules/desktop/graphics/sway/nwg-panel/default.nix index bba3b2f..a160047 100644 --- a/modules/desktop/graphics/sway/nwg-panel/default.nix +++ b/modules/desktop/graphics/sway/nwg-panel/default.nix @@ -113,6 +113,7 @@ in { config = lib.mkIf cfg.enable { + services.upower.enable = true; environment.etc."xdg/nwg-panel/config" = { text = panelConfig; # The UNIX file mode bits