This repository has no description
3.1 kB
100 lines
1{ inputs, ... }:
2{
3 perSystem =
4 {
5 lib,
6 pkgs,
7 ...
8 }:
9 {
10 packages.notmuch =
11 let
12 # Mailboxes configuration from mail.nix
13 mailboxes = {
14 afra = [ "to:afra@afra-berlin.de" ];
15 c-base = [ "to:c-base.org" ];
16 coins = [
17 "to:btce@lassul.us"
18 "to:coinbase@lassul.us"
19 "to:polo@lassul.us"
20 "to:bitwala@lassul.us"
21 "to:payeer@lassul.us"
22 "to:gatehub@lassul.us"
23 "to:bitfinex@lassul.us"
24 "to:binance@lassul.us"
25 "to:bitcoin.de@lassul.us"
26 "to:robinhood@lassul.us"
27 ];
28 dezentrale = [ "to:dezentrale.space" ];
29 dhl = [ "to:dhl@lassul.us" ];
30 dn42 = [ "to:dn42@lists.nox.tf" ];
31 eloop = [ "to:eloop.org" ];
32 github = [ "to:github@lassul.us" ];
33 gmail = [
34 "to:gmail@lassul.us"
35 "to:lassulus@gmail.com"
36 "lassulus@googlemail.com"
37 ];
38 india = [
39 "to:hillhackers@lists.hillhacks.in"
40 "to:hackbeach@lists.hackbeach.in"
41 "to:hackbeach@mail.hackbeach.in"
42 ];
43 kaosstuff = [
44 "to:gearbest@lassul.us"
45 "to:banggood@lassul.us"
46 "to:tomtop@lassul.us"
47 ];
48 lugs = [ "to:lugs@lug-s.org" ];
49 meetup = [ "to:meetup@lassul.us" ];
50 nix = [
51 "to:nix-devel@googlegroups.com"
52 "to:nix@lassul.us"
53 ];
54 patreon = [ "to:patreon@lassul.us" ];
55 paypal = [ "to:paypal@lassul.us" ];
56 ptl = [ "to:ptl@posttenebraslab.ch" ];
57 retiolum = [ "to:lass@mors.r" ];
58 security = [
59 "to:seclists.org"
60 "to:bugtraq"
61 "to:securityfocus@lassul.us"
62 "to:security-announce@lists.apple.com"
63 ];
64 shack = [ "to:shackspace.de" ];
65 steam = [ "to:steam@lassul.us" ];
66 tinc = [
67 "to:tinc@tinc-vpn.org"
68 "to:tinc-devel@tinc-vpn.org"
69 ];
70 wireguard = [ "to:wireguard@lists.zx2c4" ];
71 zzz = [
72 "to:pizza@lassul.us"
73 "to:spam@krebsco.de"
74 ];
75 };
76
77 notmuchConfig = inputs.wrappers.wrapperModules.notmuch.apply {
78 pkgs = pkgs;
79 settings = {
80 database = {
81 path = "Maildir";
82 mail_root = "Maildir";
83 };
84 new.tags = "unread;inbox;";
85 search.exclude_tags = "deleted;spam;";
86 maildir.synchronize_flags = true;
87 user = {
88 name = "lassulus";
89 primary_email = "lassulus@lassul.us";
90 other_email = lib.concatStringsSep ";" (lib.flatten (lib.attrValues mailboxes));
91 };
92 };
93 passthru = {
94 mailboxes = mailboxes;
95 };
96 };
97 in
98 notmuchConfig.wrapper;
99 };
100}