From d49b514aa610f7412e4d030b159daf978ee2281e Mon Sep 17 00:00:00 2001 From: Nick Hu Date: Wed, 10 Apr 2019 14:24:35 +0100 Subject: [PATCH] make notmuch search.exclude_tags configurable --- modules/programs/notmuch.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/programs/notmuch.nix b/modules/programs/notmuch.nix index a5ded5680..1886aee39 100644 --- a/modules/programs/notmuch.nix +++ b/modules/programs/notmuch.nix @@ -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. + ''; + }; + }; }; };