make notmuch search.exclude_tags configurable
This commit is contained in:
parent
b6e1d82685
commit
d49b514aa6
|
@ -46,7 +46,7 @@ let
|
|||
};
|
||||
|
||||
search = {
|
||||
exclude_tags = [ "deleted" "spam" ];
|
||||
exclude_tags = cfg.search.excludeTags;
|
||||
};
|
||||
}
|
||||
cfg.extraConfig;
|
||||
|
@ -138,6 +138,19 @@ in
|
|||
'';
|
||||
};
|
||||
};
|
||||
|
||||
search = {
|
||||
excludeTags = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ "deleted" "spam" ];
|
||||
example = [ "trash" "spam" ];
|
||||
description = ''
|
||||
A list of tags that will be excluded from search results by
|
||||
default. Using an excluded tag in a query will override that
|
||||
exclusion.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue