fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
831 B37 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        msmtp.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.enable = true;
23
24    test.stubs.neomutt = { };
25
26    nmt.script = ''
27      assertFileExists home-files/.config/neomutt/neomuttrc
28      assertFileExists home-files/.config/neomutt/hm@example.com
29      assertFileContent home-files/.config/neomutt/neomuttrc ${
30        ./neomutt-expected.conf
31      }
32      assertFileContent home-files/.config/neomutt/hm@example.com ${
33        ./hm-example.com-msmtp-expected.conf
34      }
35    '';
36  };
37}