fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
636 B29 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.enable = true;
13        imap.port = 993;
14      };
15    };
16
17    programs.neomutt.enable = true;
18    programs.neomutt.changeFolderWhenSourcingAccount = false;
19
20    test.stubs.neomutt = { };
21
22    nmt.script = ''
23      assertFileExists home-files/.config/neomutt/hm@example.com
24      assertFileContent home-files/.config/neomutt/hm@example.com ${
25        ./hm-example.com-no-folder-change-expected.conf
26      }
27    '';
28  };
29}