fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
862 B40 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      };
20    };
21
22    programs.neomutt = {
23      enable = true;
24      vimKeys = false;
25    };
26
27    test.stubs.neomutt = { };
28
29    nmt.script = ''
30      assertFileExists home-files/.config/neomutt/neomuttrc
31      assertFileExists home-files/.config/neomutt/hm@example.com
32      assertFileContent home-files/.config/neomutt/neomuttrc ${
33        ./neomutt-expected.conf
34      }
35      assertFileContent home-files/.config/neomutt/hm@example.com ${
36        ./hm-example.com-expected
37      }
38    '';
39  };
40}