feat: email debt timer

This commit is contained in:
2026-05-06 21:22:27 +02:00
parent 4adace6c4c
commit cfdcf0c039
4 changed files with 114 additions and 48 deletions

View File

@@ -131,6 +131,21 @@
default = "emacsclient";
description = "Path to the emacsclient binary";
};
debt_query = lib.mkOption {
type = lib.types.str;
default = "tag:unread and date:..1w";
description = "notmuch query whose count drives the mail-debt severity color on the bar widget";
};
debt_warn_at = lib.mkOption {
type = lib.types.int;
default = 1;
description = "Debt count at which the widget switches to the warn (orange) color";
};
debt_alarm_at = lib.mkOption {
type = lib.types.int;
default = 6;
description = "Debt count at which the widget switches to the alarm (red) color";
};
};
screenrec = {
enable = lib.mkOption {
@@ -210,6 +225,9 @@
enable = true;
notmuch_path = "notmuch";
emacsclient_command = "emacsclient";
debt_query = "tag:unread and date:..1w";
debt_warn_at = 1;
debt_alarm_at = 6;
};
screenrec = {
enable = false;