fork/home-manager

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

Clément DOUINhimalaya: adjust module for 0.8.X (#4093)9ce6977f

master
795 B36 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  accounts.email.accounts = {
7    "hm@example.com" = {
8      primary = true;
9      address = "hm@example.com";
10      userName = "home.manager";
11      realName = "H. M. Test";
12      passwordCommand = "password-command";
13      folders = { trash = "Deleted"; };
14      notmuch.enable = true;
15      msmtp.enable = true;
16      himalaya = {
17        enable = true;
18        settings = { sendmail-cmd = "msmtp"; };
19      };
20    };
21  };
22
23  programs.himalaya = {
24    enable = true;
25    settings = { email-listing-page-size = 50; };
26  };
27
28  test.stubs.himalaya = { };
29
30  nmt.script = ''
31    assertFileExists home-files/.config/himalaya/config.toml
32    assertFileContent home-files/.config/himalaya/config.toml ${
33      ./notmuch-sendmail-expected.toml
34    }
35  '';
36}