From edad23ebc1bcc226ef5eb57c8d779b9b425adca1 Mon Sep 17 00:00:00 2001 From: Ilia <43654815+istudyatuni@users.noreply.github.com> Date: Mon, 17 Feb 2025 22:10:04 +0300 Subject: [PATCH] mako: add max-history option (#6009) --- modules/services/mako.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/services/mako.nix b/modules/services/mako.nix index e3298d83..df653227 100644 --- a/modules/services/mako.nix +++ b/modules/services/mako.nix @@ -33,6 +33,15 @@ 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 = @@ -315,6 +324,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}