hm-module: enable poweralertd by default with battery module (opt-out via battery.poweralertd = false)

This commit is contained in:
Damocles 2026-04-16 20:53:15 +02:00
parent 03ff5aa3c6
commit 1ae953fc73

View file

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