docs: add disk.warnThreshold to readme and hm-module

This commit is contained in:
Damocles 2026-04-22 20:08:37 +02:00
parent 4b5272c124
commit 8177b5e2a2
2 changed files with 12 additions and 2 deletions

View file

@ -144,7 +144,16 @@ in
description = "Maximum notifications kept in history (-1 for unlimited).";
};
};
disk = moduleOpt "disk" (intervalOpt 30000);
disk = moduleOpt "disk" (
(intervalOpt 30000)
// {
warnThreshold = lib.mkOption {
type = lib.types.int;
default = 85;
description = "Usage percentage at which the disk module bar turns warning color.";
};
}
);
backlight = moduleOpt "backlight" {
step = lib.mkOption {
type = lib.types.int;