fork/home-manager
git clone https://git.julia.blue/fork/home-manager
6abb775e
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6accounts . . accounts = { 7"hm@example.com" = { 8primary = true ; 9address = "hm@example.com" ; 10userName = "home.manager" ; 11realName = "H. M. Test" ; 12passwordCommand = "password-command" ; 13imap = { 14host = "imap.example.com" ; 15port = 143 ; 16tls = { enable = false ; }; 17}; 18smtp = { 19host = "smtp.example.com" ; 20port = 465 ; 21tls = { 22enable = true ; 23useStartTls = true ; 24}; 25}; 26folders = { 27inbox = "In" ; 28sent = "Out" ; 29drafts = "D" ; 30}; 31himalaya = { 32enable = true ; 33settings = { 34folder-listing-page-size = 50 ; 35email-listing-page-size = 50 ; 36folder-aliases = { 37inbox = "In2" ; 38custom = "Custom" ; 39}; 40}; 41}; 42}; 43}; 44 45programs . himalaya = { 46enable = true ; 47settings = { email-listing-page-size = 40 ; }; 48}; 49 50test . stubs . himalaya = { }; 51 52nmt . script = '' 53assertFileExists home-files/.config/himalaya/config.toml 54assertFileContent home-files/.config/himalaya/config.toml ${ 55./imap-smtp-expected.toml 56} 57'' ; 58}