fork/home-manager
git clone https://git.julia.blue/fork/home-manager
75b24cc5
master
1{ 2imports = [ ../../accounts/email-test-accounts.nix ]; 3 4accounts . . accounts = { 5"hm@example.com" = { 6thunderbird = { 7enable = true ; 8profiles = [ "first" ]; 9}; 10 11aliases = [ "home-manager@example.com" ]; 12 13gpg . key = "ABC" ; 14 15imap = { 16port = 123 ; 17tls . enable = true ; 18}; 19smtp . port = 456 ; 20}; 21 22hm-account = { 23thunderbird = { 24enable = true ; 25settings = id :{ 26"mail.identity.id_ ${ id } .protectSubject" = false ; 27"mail.identity.id_ ${ id } .autoEncryptDrafts" = false ; 28}; 29}; 30}; 31}; 32 33programs . thunderbird = { 34enable = true ; 35 36profiles = { 37first = { 38isDefault = true ; 39withExternalGnupg = true ; 40userChrome = '' 41* { color: blue !important; } 42'' ; 43userContent = '' 44* { color: red !important; } 45'' ; 46extraConfig = '' 47user_pref("mail.html_compose", false); 48'' ; 49}; 50 51second . settings = { "second.setting" = "some-test-setting" ; }; 52}; 53 54settings = { 55"general.useragent.override" = "" ; 56"privacy.donottrackheader.enabled" = true ; 57}; 58}; 59 60test . stubs . thunderbird = { }; 61 62nmt . script = '' 63assertFileExists home-files/.thunderbird/profiles.ini 64assertFileContent home-files/.thunderbird/profiles.ini \ 65${ ./thunderbird-expected-profiles.ini } 66 67assertFileExists home-files/.thunderbird/first/user.js 68assertFileContent home-files/.thunderbird/first/user.js \ 69${ ./thunderbird-expected-first.js } 70 71assertFileExists home-files/.thunderbird/second/user.js 72assertFileContent home-files/.thunderbird/second/user.js \ 73${ ./thunderbird-expected-second.js } 74 75assertFileExists home-files/.thunderbird/first/chrome/userChrome.css 76assertFileContent home-files/.thunderbird/first/chrome/userChrome.css \ 77<( echo "* { color: blue !important; }" ) 78 79assertFileExists home-files/.thunderbird/first/chrome/userContent.css 80assertFileContent home-files/.thunderbird/first/chrome/userContent.css \ 81<( echo "* { color: red !important; }" ) 82'' ; 83}