make notmuch search.exclude_tags configurable

This commit is contained in:
Nick Hu 2019-04-10 14:24:35 +01:00 committed by Matthieu Coudron
parent b6e1d82685
commit d49b514aa6

View file

@ -46,7 +46,7 @@ let
}; };
search = { search = {
exclude_tags = [ "deleted" "spam" ]; exclude_tags = cfg.search.excludeTags;
}; };
} }
cfg.extraConfig; 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.
'';
};
};
}; };
}; };