mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +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" ];
|
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