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";