fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
788 B32 linesraw
1{ config, lib, pkgs, ... }:
2with lib; {
3  imports = [ ../../accounts/email-test-accounts.nix ];
4
5  config = {
6    accounts.email.accounts = {
7      "hm@example.com" = {
8        gpg = {
9          encryptByDefault = true;
10          signByDefault = true;
11        };
12        neomutt.enable = true;
13        imap.port = 993;
14      };
15    };
16
17    programs.neomutt.enable = true;
18
19    test.stubs.neomutt = { };
20
21    nmt.script = ''
22      assertFileExists home-files/.config/neomutt/neomuttrc
23      assertFileExists home-files/.config/neomutt/hm@example.com
24      assertFileContent home-files/.config/neomutt/neomuttrc ${
25        ./neomutt-expected.conf
26      }
27      assertFileContent home-files/.config/neomutt/hm@example.com ${
28        ./hm-example.com-gpg-expected.conf
29      }
30    '';
31  };
32}