alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
tools: add notmuch
author
lassulus
date
1 year ago
(Aug 6, 2025, 2:40 PM CEST)
commit
678d7caf
678d7caf2ce1816b736367c658025af1c40a56e4
parent
8c6edf17
8c6edf179ac9aa0c717add4ff161bb7a26ddc059
+121
-94
2 changed files
Expand all
Collapse all
Unified
Split
tools
mutt
flake-module.nix
notmuch
flake-module.nix
+11
-94
tools/mutt/flake-module.nix
View file
Reviewed
···
11
11
packages.mutt =
12
12
let
13
13
# Mailboxes configuration from mail.nix
14
14
-
mailboxes = {
15
15
-
afra = [ "to:afra@afra-berlin.de" ];
16
16
-
c-base = [ "to:c-base.org" ];
17
17
-
coins = [
18
18
-
"to:btce@lassul.us"
19
19
-
"to:coinbase@lassul.us"
20
20
-
"to:polo@lassul.us"
21
21
-
"to:bitwala@lassul.us"
22
22
-
"to:payeer@lassul.us"
23
23
-
"to:gatehub@lassul.us"
24
24
-
"to:bitfinex@lassul.us"
25
25
-
"to:binance@lassul.us"
26
26
-
"to:bitcoin.de@lassul.us"
27
27
-
"to:robinhood@lassul.us"
28
28
-
];
29
29
-
dezentrale = [ "to:dezentrale.space" ];
30
30
-
dhl = [ "to:dhl@lassul.us" ];
31
31
-
dn42 = [ "to:dn42@lists.nox.tf" ];
32
32
-
eloop = [ "to:eloop.org" ];
33
33
-
github = [ "to:github@lassul.us" ];
34
34
-
gmail = [
35
35
-
"to:gmail@lassul.us"
36
36
-
"to:lassulus@gmail.com"
37
37
-
"lassulus@googlemail.com"
38
38
-
];
39
39
-
india = [
40
40
-
"to:hillhackers@lists.hillhacks.in"
41
41
-
"to:hackbeach@lists.hackbeach.in"
42
42
-
"to:hackbeach@mail.hackbeach.in"
43
43
-
];
44
44
-
kaosstuff = [
45
45
-
"to:gearbest@lassul.us"
46
46
-
"to:banggood@lassul.us"
47
47
-
"to:tomtop@lassul.us"
48
48
-
];
49
49
-
lugs = [ "to:lugs@lug-s.org" ];
50
50
-
meetup = [ "to:meetup@lassul.us" ];
51
51
-
nix = [
52
52
-
"to:nix-devel@googlegroups.com"
53
53
-
"to:nix@lassul.us"
54
54
-
];
55
55
-
patreon = [ "to:patreon@lassul.us" ];
56
56
-
paypal = [ "to:paypal@lassul.us" ];
57
57
-
ptl = [ "to:ptl@posttenebraslab.ch" ];
58
58
-
retiolum = [ "to:lass@mors.r" ];
59
59
-
security = [
60
60
-
"to:seclists.org"
61
61
-
"to:bugtraq"
62
62
-
"to:securityfocus@lassul.us"
63
63
-
"to:security-announce@lists.apple.com"
64
64
-
];
65
65
-
shack = [ "to:shackspace.de" ];
66
66
-
steam = [ "to:steam@lassul.us" ];
67
67
-
tinc = [
68
68
-
"to:tinc@tinc-vpn.org"
69
69
-
"to:tinc-devel@tinc-vpn.org"
70
70
-
];
71
71
-
wireguard = [ "to:wireguard@lists.zx2c4" ];
72
72
-
zzz = [
73
73
-
"to:pizza@lassul.us"
74
74
-
"to:spam@krebsco.de"
75
75
-
];
76
76
-
};
77
77
-
78
78
-
notmuchConfig = ''
79
79
-
[database]
80
80
-
path=Maildir
81
81
-
mail_root=Maildir
82
82
-
83
83
-
[user]
84
84
-
name=lassulus
85
85
-
primary_email=lassulus@lassul.us
86
86
-
other_email=lass@mors.r;${lib.concatStringsSep ";" (lib.flatten (lib.attrValues mailboxes))}
87
87
-
88
88
-
[new]
89
89
-
tags=unread;inbox;
90
90
-
ignore=
91
91
-
92
92
-
[search]
93
93
-
exclude_tags=deleted;spam;
94
94
-
95
95
-
[maildir]
96
96
-
synchronize_flags=true
97
97
-
'';
14
14
+
mailboxes = self.packages.${system}.notmuch.mailboxes;
15
15
+
notmuchConfig = self.packages.${system}.notmuch.notmuchConfig;
98
16
99
17
mailcap = pkgs.writeText "mailcap" ''
100
18
text/html; ${pkgs.elinks}/bin/elinks -dump ; copiousoutput;
···
272
190
in
273
191
self.libWithPkgs.${pkgs.system}.makeWrapper pkgs.neomutt {
274
192
aliases = [ "mutt" ];
275
275
-
runtimeInputs =
276
276
-
[
277
277
-
pkgs.elinks
278
278
-
pkgs.msmtp
279
279
-
pkgs.notmuch
280
280
-
pkgs.urlscan
281
281
-
]
282
282
-
++ lib.optionals pkgs.stdenv.isLinux [
283
283
-
pkgs.iputils
284
284
-
];
193
193
+
runtimeInputs = [
194
194
+
pkgs.elinks
195
195
+
pkgs.msmtp
196
196
+
pkgs.notmuch
197
197
+
pkgs.urlscan
198
198
+
]
199
199
+
++ lib.optionals pkgs.stdenv.isLinux [
200
200
+
pkgs.iputils
201
201
+
];
285
202
env = {
286
203
NOTMUCH_CONFIG = "${pkgs.writeText "notmuch-config" notmuchConfig}";
287
204
};
+110
tools/notmuch/flake-module.nix
View file
Reviewed
···
1
1
+
{ self, ... }:
2
2
+
{
3
3
+
perSystem =
4
4
+
{
5
5
+
pkgs,
6
6
+
lib,
7
7
+
system,
8
8
+
...
9
9
+
}:
10
10
+
{
11
11
+
packages.notmuch =
12
12
+
let
13
13
+
# Mailboxes configuration from mail.nix
14
14
+
mailboxes = {
15
15
+
afra = [ "to:afra@afra-berlin.de" ];
16
16
+
c-base = [ "to:c-base.org" ];
17
17
+
coins = [
18
18
+
"to:btce@lassul.us"
19
19
+
"to:coinbase@lassul.us"
20
20
+
"to:polo@lassul.us"
21
21
+
"to:bitwala@lassul.us"
22
22
+
"to:payeer@lassul.us"
23
23
+
"to:gatehub@lassul.us"
24
24
+
"to:bitfinex@lassul.us"
25
25
+
"to:binance@lassul.us"
26
26
+
"to:bitcoin.de@lassul.us"
27
27
+
"to:robinhood@lassul.us"
28
28
+
];
29
29
+
dezentrale = [ "to:dezentrale.space" ];
30
30
+
dhl = [ "to:dhl@lassul.us" ];
31
31
+
dn42 = [ "to:dn42@lists.nox.tf" ];
32
32
+
eloop = [ "to:eloop.org" ];
33
33
+
github = [ "to:github@lassul.us" ];
34
34
+
gmail = [
35
35
+
"to:gmail@lassul.us"
36
36
+
"to:lassulus@gmail.com"
37
37
+
"lassulus@googlemail.com"
38
38
+
];
39
39
+
india = [
40
40
+
"to:hillhackers@lists.hillhacks.in"
41
41
+
"to:hackbeach@lists.hackbeach.in"
42
42
+
"to:hackbeach@mail.hackbeach.in"
43
43
+
];
44
44
+
kaosstuff = [
45
45
+
"to:gearbest@lassul.us"
46
46
+
"to:banggood@lassul.us"
47
47
+
"to:tomtop@lassul.us"
48
48
+
];
49
49
+
lugs = [ "to:lugs@lug-s.org" ];
50
50
+
meetup = [ "to:meetup@lassul.us" ];
51
51
+
nix = [
52
52
+
"to:nix-devel@googlegroups.com"
53
53
+
"to:nix@lassul.us"
54
54
+
];
55
55
+
patreon = [ "to:patreon@lassul.us" ];
56
56
+
paypal = [ "to:paypal@lassul.us" ];
57
57
+
ptl = [ "to:ptl@posttenebraslab.ch" ];
58
58
+
retiolum = [ "to:lass@mors.r" ];
59
59
+
security = [
60
60
+
"to:seclists.org"
61
61
+
"to:bugtraq"
62
62
+
"to:securityfocus@lassul.us"
63
63
+
"to:security-announce@lists.apple.com"
64
64
+
];
65
65
+
shack = [ "to:shackspace.de" ];
66
66
+
steam = [ "to:steam@lassul.us" ];
67
67
+
tinc = [
68
68
+
"to:tinc@tinc-vpn.org"
69
69
+
"to:tinc-devel@tinc-vpn.org"
70
70
+
];
71
71
+
wireguard = [ "to:wireguard@lists.zx2c4" ];
72
72
+
zzz = [
73
73
+
"to:pizza@lassul.us"
74
74
+
"to:spam@krebsco.de"
75
75
+
];
76
76
+
};
77
77
+
78
78
+
notmuchConfig = ''
79
79
+
[database]
80
80
+
path=Maildir
81
81
+
mail_root=Maildir
82
82
+
83
83
+
[user]
84
84
+
name=lassulus
85
85
+
primary_email=lassulus@lassul.us
86
86
+
other_email=lass@mors.r;${lib.concatStringsSep ";" (lib.flatten (lib.attrValues mailboxes))}
87
87
+
88
88
+
[new]
89
89
+
tags=unread;inbox;
90
90
+
ignore=
91
91
+
92
92
+
[search]
93
93
+
exclude_tags=deleted;spam;
94
94
+
95
95
+
[maildir]
96
96
+
synchronize_flags=true
97
97
+
'';
98
98
+
99
99
+
in
100
100
+
self.libWithPkgs.${pkgs.system}.makeWrapper pkgs.notmuch {
101
101
+
env = {
102
102
+
NOTMUCH_CONFIG = "${pkgs.writeText "notmuch-config" notmuchConfig}";
103
103
+
};
104
104
+
passthru = {
105
105
+
notmuchConfig = notmuchConfig;
106
106
+
mailboxes = mailboxes;
107
107
+
};
108
108
+
};
109
109
+
};
110
110
+
}