fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
688 B34 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        alot = {
13          contactCompletion = { };
14          extraConfig = ''
15            auto_remove_unread = True
16            ask_subject = False
17            handle_mouse = True
18          '';
19        };
20        imap.port = 993;
21      };
22    };
23
24    programs.alot = { enable = true; };
25
26    test.stubs.alot = { };
27
28    nmt.script = ''
29      assertFileExists home-files/.config/alot/config
30      assertFileContent home-files/.config/alot/config ${./alot-expected.conf}
31    '';
32  };
33}
34