fork/home-manager
git clone https://git.julia.blue/fork/home-manager
f5b03feb
master
1{ pkgs , lib , ...} : 2 3with lib ; 4 5{ 6options . imapnotify = { 7enable = mkEnableOption "imapnotify" ; 8 9onNotify = mkOption { 10type = with types ; either str ( attrsOf str ); 11default = "" ; 12example = "\${pkgs.isync}/bin/mbsync test-%s" ; 13description = "Shell commands to run on any event." ; 14}; 15 16onNotifyPost = mkOption { 17type = with types ; either str ( attrsOf str ); 18default = "" ; 19example = { 20= 21"\${pkgs.notmuch}/bin/notmuch new && \${pkgs.libnotify}/bin/notify-send 'New mail arrived'" ; 22}; 23description = "Shell commands to run after onNotify event." ; 24}; 25 26boxes = mkOption { 27type = types . listOf types . str ; 28default = [ ]; 29example = [ "Inbox" "[Gmail]/MyLabel" ]; 30description = "IMAP folders to watch." ; 31}; 32 33extraConfig = mkOption { 34type = let jsonFormat = pkgs . formats . json { }; in jsonFormat . type ; 35default = { }; 36example = { wait = 10 ; }; 37description = "Additional configuration to add for this account." ; 38}; 39}; 40}