fork/home-manager

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

Sumner Evansneomutt: add support for signature command (#2899)f8b51be7

master
1.1 KiB48 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 = 993;
19        signature = {
20          showSignature = "append";
21          text = ''
22            --
23            Test Signature
24          '';
25        };
26      };
27    };
28
29    programs.neomutt = {
30      enable = true;
31      vimKeys = false;
32    };
33
34    test.stubs.neomutt = { };
35
36    nmt.script = ''
37      assertFileExists home-files/.config/neomutt/neomuttrc
38      assertFileExists home-files/.config/neomutt/hm@example.com
39      assertFileContent home-files/.config/neomutt/neomuttrc ${
40        ./neomutt-expected.conf
41      }
42      expectedSignature=$(normalizeStorePaths "home-files/.config/neomutt/hm@example.com")
43      assertFileContent "$expectedSignature" ${
44        ./hm-example.com-signature-expected
45      }
46    '';
47  };
48}