aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/mail.nix
blob: 6ec9165305206b4db499ed97ef941f4b90faba16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ lib, pkgs, config, myconfig, mylibs, ... }:
{
  config.ids.uids.nullmailer = myconfig.env.users.nullmailer.uid;
  config.ids.gids.nullmailer = myconfig.env.users.nullmailer.gid;
  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";
    };
  };
}