nix-config/modules/nix/networking/mail.nix
smayzy 75f60590ad
All checks were successful
nixos config pipeline / show-flake (push) Successful in 42s
nixos config pipeline / deploy (push) Successful in 1m4s
add mail
2026-03-06 19:56:49 +01:00

27 lines
419 B
Nix

{
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;
};
}