1
0
Fork 0
nix-configuration/modules/services/msmtp.nix

20 lines
350 B
Nix
Raw Normal View History

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