Skip to content

Commit

Permalink
mako: add max-history option (#6009)
Browse files Browse the repository at this point in the history
  • Loading branch information
istudyatuni authored Feb 17, 2025
1 parent f4f6dd2 commit edad23e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/services/mako.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit edad23e

Please sign in to comment.