1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

mako: add max-history option

This commit is contained in:
Ilia 2024-10-26 11:31:56 +03:00
parent 93435d27d2
commit af1137c156

View file

@ -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 { sort = mkOption {
default = "-time"; default = "-time";
type = type =
@ -313,6 +321,7 @@ in {
''; '';
text = '' text = ''
${optionalInteger "max-visible" cfg.maxVisible} ${optionalInteger "max-visible" cfg.maxVisible}
${optionalInteger "max-history" cfg.maxHistory}
${optionalString "sort" cfg.sort} ${optionalString "sort" cfg.sort}
${optionalString "output" cfg.output} ${optionalString "output" cfg.output}
${optionalString "layer" cfg.layer} ${optionalString "layer" cfg.layer}