Skip to content

Commit a89ecdc

Browse files
committed
config(modules/random-alerts): Add start and end time options
1 parent f347079 commit a89ecdc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

modules/random-alerts/default.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@
4242
description = ''Time after alerts ends in seconds'';
4343
};
4444

45+
start-time = mkOption {
46+
type = types.str;
47+
default = "00:00:00";
48+
example = "10:00:00";
49+
description = ''The start time of alerts in a 24-hour clock'';
50+
};
51+
52+
end-time = mkOption {
53+
type = types.str;
54+
default = "23:59:59";
55+
example = "22:00:00";
56+
description = ''The end time of alerts in a 24-hour clock'';
57+
};
58+
4559
log-level = mkOption {
4660
type = types.enum [
4761
"info"

0 commit comments

Comments
 (0)