fork/home-manager

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

Clément DOUINhimalaya: improve derivation for v0.7.X (#3664)6abb775e

master
1.2 KiB58 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      imap = {
14        host = "imap.example.com";
15        port = 143;
16        tls = { enable = false; };
17      };
18      smtp = {
19        host = "smtp.example.com";
20        port = 465;
21        tls = {
22          enable = true;
23          useStartTls = true;
24        };
25      };
26      folders = {
27        inbox = "In";
28        sent = "Out";
29        drafts = "D";
30      };
31      himalaya = {
32        enable = true;
33        settings = {
34          folder-listing-page-size = 50;
35          email-listing-page-size = 50;
36          folder-aliases = {
37            inbox = "In2";
38            custom = "Custom";
39          };
40        };
41      };
42    };
43  };
44
45  programs.himalaya = {
46    enable = true;
47    settings = { email-listing-page-size = 40; };
48  };
49
50  test.stubs.himalaya = { };
51
52  nmt.script = ''
53    assertFileExists home-files/.config/himalaya/config.toml
54    assertFileContent home-files/.config/himalaya/config.toml ${
55      ./imap-smtp-expected.toml
56    }
57  '';
58}