diff --git a/modules/programs/notmuch.nix b/modules/programs/notmuch.nix index 54242245f..a5ded5680 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. + ''; + }; + }; }; };