blob: 151246566757d3fef019c84b5f48a90590103311 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Neomutt - Email suite entry point (neomutt + mbsync + notmuch)
{
config,
lib,
...
}:
{
imports = [
./account
./sync
./assertions.nix
./keybindings.nix
./macros.nix
./neomutt.nix
];
options.communication.neomutt = {
enable = lib.mkEnableOption "Email suite (neomutt + mbsync + notmuch)";
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = config.programs.neomutt.package;
description = "The neomutt package to use, wrapped with urlscan in PATH.";
};
};
config = lib.mkIf config.communication.neomutt.enable {
accounts.email.maildirBasePath = "${config.home.homeDirectory}/.local/share/mail";
home.sessionVariables.MAILDIR = config.accounts.email.maildirBasePath;
};
}
|