1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 16:57:03 +00:00

mako: add max-history option (#6009)

This commit is contained in:
Ilia 2025-02-17 22:10:04 +03:00 committed by GitHub
parent f4f6dd2698
commit edad23ebc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}