accounts.nix
1 { 2 pkgs, 3 config, 4 ... 5 }: 6 { 7 accounts = { 8 email = { 9 maildirBasePath = "Maildir"; 10 11 accounts = { 12 personal = { 13 primary = true; 14 address = config.me.email; 15 userName = config.me.email; 16 realName = config.me.fullname; 17 flavor = "gmail.com"; 18 passwordCommand = "${pkgs.pass}/bin/pass Email/GmailApp"; 19 20 signature = { 21 showSignature = "append"; 22 text = '' 23 Warm regards, 24 ${config.me.fullname} 25 ''; 26 }; 27 28 mu.enable = true; 29 msmtp.enable = true; 30 neomutt.enable = true; 31 32 mbsync = { 33 enable = true; 34 create = "both"; 35 remove = "none"; 36 expunge = "both"; 37 patterns = [ 38 "*" 39 "![Gmail]/All Mail" 40 "![Gmail]/Important" 41 "![Gmail]/Starred" 42 ]; 43 }; 44 }; 45 46 apidaesystems = { 47 address = "farabi@apidaesystems.ca"; 48 userName = "farabi@apidaesystems.ca"; 49 realName = config.me.fullname; 50 flavor = "gmail.com"; 51 passwordCommand = "${pkgs.pass}/bin/pass Email/apidaesystems"; 52 53 signature = { 54 showSignature = "append"; 55 text = '' 56 Warm regards, 57 ${config.me.fullname} 58 ''; 59 }; 60 61 mu.enable = true; 62 msmtp.enable = true; 63 neomutt.enable = true; 64 65 mbsync = { 66 enable = true; 67 create = "both"; 68 remove = "none"; 69 expunge = "both"; 70 patterns = [ 71 "*" 72 "![Gmail]/All Mail" 73 "![Gmail]/Important" 74 "![Gmail]/Starred" 75 ]; 76 }; 77 }; 78 }; 79 }; 80 81 # calendar = { 82 # accounts = { 83 # mfarabi = { 84 # khal = { 85 # enable = true; 86 # }; 87 88 # qcal.enable = true; 89 # }; 90 # }; 91 # }; 92 93 # contact = { 94 # # basePath = ""; 95 # accounts = { 96 # mfarabi = { 97 # khard.enable = false; 98 99 # local ={ 100 # type = "filesystem"; 101 # }; 102 103 # remote = { 104 # userName = "mfarabi"; 105 # url = ""; 106 # type = "carddav"; # http google_contacts 107 # }; 108 # }; 109 # }; 110 # }; 111 }; 112 }