From af1137c156350a936a3931707860d7d7ff3151dd Mon Sep 17 00:00:00 2001 From: Ilia Date: Sat, 26 Oct 2024 11:31:56 +0300 Subject: [PATCH] mako: add max-history option --- modules/services/mako.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/services/mako.nix b/modules/services/mako.nix index 7ca011782..da107942a 100644 --- a/modules/services/mako.nix +++ b/modules/services/mako.nix @@ -33,6 +33,14 @@ in { ''; }; + maxHistory = mkOption { + default = 5; + type = types.nullOr types.int; + description = '' + Set maximum number of expired notifications to keep in the history buffer. Set 0 to disable history. + ''; + }; + sort = mkOption { default = "-time"; type = @@ -313,6 +321,7 @@ in { ''; text = '' ${optionalInteger "max-visible" cfg.maxVisible} + ${optionalInteger "max-history" cfg.maxHistory} ${optionalString "sort" cfg.sort} ${optionalString "output" cfg.output} ${optionalString "layer" cfg.layer}