mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 00:20:31 +00:00
make notmuch search.exclude_tags configurable
This commit is contained in:
parent
b6e1d82685
commit
d49b514aa6
1 changed files with 14 additions and 1 deletions
|
@ -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.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue