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:
parent
93435d27d2
commit
af1137c156
1 changed files with 9 additions and 0 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue