1
0
Fork 0
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:
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" ];
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;
} // optionalAttrs (account.imapnotify.onNotifyPost != "") {
onNewMailPost = account.imapnotify.onNotifyPost;
}));
} // account.imapnotify.extraConfig));
in {
meta.maintainers = [ maintainers.nickhu ];