fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
510 B25 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".maildir = null;
11      hm-account.neomutt.enable = true;
12    };
13
14    programs.neomutt.enable = true;
15
16    test.stubs.neomutt = { };
17
18    nmt.script = ''
19      assertFileExists home-files/.config/neomutt/neomuttrc
20      assertFileContent home-files/.config/neomutt/neomuttrc ${
21        ./neomutt-not-primary-expected.conf
22      }
23    '';
24  };
25}