diff --git a/modules/accounts/email.nix b/modules/accounts/email.nix index 2d158a21..897aef6d 100644 --- a/modules/accounts/email.nix +++ b/modules/accounts/email.nix @@ -321,7 +321,7 @@ let }; drafts = mkOption { - type = types.str; + type = types.nullOr types.str; default = "Drafts"; description = '' Relative path of the drafts mail folder. diff --git a/modules/programs/alot.nix b/modules/programs/alot.nix index 0cc20ec6..22a29be1 100644 --- a/modules/programs/alot.nix +++ b/modules/programs/alot.nix @@ -68,7 +68,9 @@ let realname = realName; sendmail_command = optionalString (alot.sendMailCommand != null) alot.sendMailCommand; + } // optionalAttrs (folders.sent != null) { sent_box = "maildir" + "://" + maildir.absPath + "/" + folders.sent; + } // optionalAttrs (folders.drafts != null) { draft_box = "maildir" + "://" + maildir.absPath + "/" + folders.drafts; } // optionalAttrs (aliases != [ ]) { aliases = concatStringsSep "," aliases;