fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Franz Pletzneomutt: fix STARTTLS408ba131

master
908 B41 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  imports = [ ../../accounts/email-test-accounts.nix ];
7
8  config = {
9    accounts.email.accounts = {
10      "hm@example.com" = {
11        notmuch.enable = true;
12        neomutt = {
13          enable = true;
14          extraConfig = ''
15            color status cyan default
16          '';
17        };
18        imap.port = 143;
19        smtp.tls.useStartTls = true;
20      };
21    };
22
23    programs.neomutt = {
24      enable = true;
25      vimKeys = false;
26    };
27
28    test.stubs.neomutt = { };
29
30    nmt.script = ''
31      assertFileExists home-files/.config/neomutt/neomuttrc
32      assertFileExists home-files/.config/neomutt/hm@example.com
33      assertFileContent home-files/.config/neomutt/neomuttrc ${
34        ./neomutt-expected.conf
35      }
36      assertFileContent home-files/.config/neomutt/hm@example.com ${
37        ./hm-example.com-starttls-expected
38      }
39    '';
40  };
41}