1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 21:13:33 +02:00

imapnotify: add extraConfig account option

This commit is contained in:
Robert Helgesson 2021-10-18 09:34:51 +02:00
parent 0d110a0936
commit 5961c64e03
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
2 changed files with 8 additions and 1 deletions

View File

@ -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.";
};
}; };
} }

View File

@ -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 ];