2024-02-29 09:53:34 -05:00
|
|
|
# See https://nixos.wiki/wiki/Msmtp
|
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.host.services.msmtp;
|
|
|
|
in
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
host.services.msmtp.enable = mkEnableOption (mdDoc "Enables mail server");
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.msmtp = {
|
|
|
|
enable = true;
|
2024-03-01 15:08:14 -05:00
|
|
|
# Authentication details set in nix-secrets
|
2024-02-29 09:53:34 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|