From 1ae953fc73a0cb8628890bd1c22cbc98758b0b75 Mon Sep 17 00:00:00 2001 From: Damocles Date: Thu, 16 Apr 2026 20:53:15 +0200 Subject: [PATCH] hm-module: enable poweralertd by default with battery module (opt-out via battery.poweralertd = false) --- nix/hm-module.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nix/hm-module.nix b/nix/hm-module.nix index c2cb1a1..33cbc0f 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -152,6 +152,11 @@ in default = 15; description = "Battery percentage for critical notification and blink."; }; + poweralertd = lib.mkOption { + type = lib.types.bool; + default = true; + description = "Enable poweralertd for battery/power event notifications. Set to false to disable."; + }; }; weather = moduleOpt "weather" ( (intervalOpt 3600000) @@ -234,6 +239,10 @@ in } ]; + services.poweralertd.enable = lib.mkIf ( + cfg.modules.battery.enable && cfg.modules.battery.poweralertd + ) (lib.mkDefault true); + systemd.user.services.nova-shell = lib.mkIf cfg.systemd.enable { Unit = { Description = "nova-shell Quickshell bar";