hm-module: enable poweralertd by default with battery module (opt-out via battery.poweralertd = false)
This commit is contained in:
parent
03ff5aa3c6
commit
1ae953fc73
1 changed files with 9 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue