fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
569 B25 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  imports = [ ../../accounts/email-test-accounts.nix ];
7
8  config = {
9    programs.lieer.enable = true;
10    programs.lieer.package = config.lib.test.mkStubPackage { };
11
12    accounts.email.accounts."hm@example.com" = {
13      flavor = "gmail.com";
14      lieer.enable = true;
15      notmuch.enable = true;
16    };
17
18    nmt.script = ''
19      assertFileExists home-files/Mail/hm@example.com/.gmailieer.json
20      assertFileContent home-files/Mail/hm@example.com/.gmailieer.json ${
21        ./lieer-expected.json
22      }
23    '';
24  };
25}