aboutsummaryrefslogblamecommitdiff
path: root/nixops/modules/mail.nix
blob: 611c8b41c792483e9b6e98d5978222eb62a59b07 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                      
 


                                                                  







                                                  
{ lib, pkgs, config, myconfig,  ... }:
{
  config.users.users.nullmailer.uid = config.ids.uids.nullmailer;
  config.users.groups.nullmailer.gid = config.ids.gids.nullmailer;

  config.services.nullmailer = {
    enable = true;
    config = {
      me = myconfig.env.mail.host;
      remotes = "${myconfig.env.mail.relay} smtp";
    };
  };
}