upd8 granularity

This commit is contained in:
Lewis Wynne 2026-04-29 16:13:53 +01:00
parent 883eb2ea89
commit 5f43f6b2cd
3 changed files with 57 additions and 11 deletions

View file

@ -47,7 +47,13 @@ in
displayDays = lib.mkOption {
type = lib.types.int;
default = 30;
description = "How many days of history to render in the bar.";
description = "How many days of history to render in the long-term bar (1 cell = 1 day).";
};
displayHours = lib.mkOption {
type = lib.types.int;
default = 24;
description = "How many hours of recent history to render in the short-term bar (1 cell = 1 hour).";
};
};
@ -73,6 +79,7 @@ in
OUTPUT_PATH = cfg.outputPath;
RETENTION_DAYS = toString cfg.retentionDays;
DISPLAY_DAYS = toString cfg.displayDays;
DISPLAY_HOURS = toString cfg.displayHours;
};
serviceConfig = {
Type = "oneshot";