imapnotify: add extraConfig
account option
This commit is contained in:
parent
0d110a0936
commit
5961c64e03
|
@ -29,5 +29,12 @@ with lib;
|
||||||
example = [ "Inbox" "[Gmail]/MyLabel" ];
|
example = [ "Inbox" "[Gmail]/MyLabel" ];
|
||||||
description = "IMAP folders to watch.";
|
description = "IMAP folders to watch.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
type = with types; attrsOf (oneOf [ bool int str ]);
|
||||||
|
default = { };
|
||||||
|
example = { wait = 10; };
|
||||||
|
description = "Additional configuration to add for this account.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ let
|
||||||
onNewMail = account.imapnotify.onNotify;
|
onNewMail = account.imapnotify.onNotify;
|
||||||
} // optionalAttrs (account.imapnotify.onNotifyPost != "") {
|
} // optionalAttrs (account.imapnotify.onNotifyPost != "") {
|
||||||
onNewMailPost = account.imapnotify.onNotifyPost;
|
onNewMailPost = account.imapnotify.onNotifyPost;
|
||||||
}));
|
} // account.imapnotify.extraConfig));
|
||||||
|
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ maintainers.nickhu ];
|
meta.maintainers = [ maintainers.nickhu ];
|
||||||
|
|
Loading…
Reference in a new issue