mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 12:19:48 +01:00
imapnotify: add extraConfig
account option
This commit is contained in:
parent
0d110a0936
commit
5961c64e03
2 changed files with 8 additions and 1 deletions
|
@ -29,5 +29,12 @@ with lib;
|
|||
example = [ "Inbox" "[Gmail]/MyLabel" ];
|
||||
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;
|
||||
} // optionalAttrs (account.imapnotify.onNotifyPost != "") {
|
||||
onNewMailPost = account.imapnotify.onNotifyPost;
|
||||
}));
|
||||
} // account.imapnotify.extraConfig));
|
||||
|
||||
in {
|
||||
meta.maintainers = [ maintainers.nickhu ];
|
||||
|
|
Loading…
Reference in a new issue