From c21b69e73e4b082c6dde94de76c5ac3bc8e4179d Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 25 Nov 2018 01:14:15 +0100 Subject: [PATCH] notmuch: add `maildir.synchronizeFlags` option --- modules/programs/notmuch.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/modules/programs/notmuch.nix b/modules/programs/notmuch.nix index 54242245..a5ded568 100644 --- a/modules/programs/notmuch.nix +++ b/modules/programs/notmuch.nix @@ -23,6 +23,10 @@ let path = config.accounts.email.maildirBasePath; }; + maildir = { + synchronize_flags = cfg.maildir.synchronizeFlags; + }; + new = { ignore = cfg.new.ignore; tags = cfg.new.tags; @@ -86,9 +90,7 @@ in extraConfig = mkOption { type = types.attrsOf (types.attrsOf types.str); - default = { - maildir = { synchronize_flags = "true"; }; - }; + default = {}; description = '' Options that should be appended to the notmuch configuration file. ''; @@ -126,6 +128,16 @@ in ''; }; }; + + maildir = { + synchronizeFlags = mkOption { + type = types.bool; + default = true; + description = '' + Whether to synchronize Maildir flags. + ''; + }; + }; }; };