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:
parent
f4f6dd2698
commit
edad23ebc1
1 changed files with 10 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue