add mail
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
in
|
||||
{
|
||||
options.smayzy.mail.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "enables neomut isync and msmtp";
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.mail.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
neomutt
|
||||
isync
|
||||
msmtp
|
||||
pass
|
||||
];
|
||||
programs.gnupg.agent.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user