diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-26 17:18:24 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-26 17:18:24 +0100 |
commit | af421a8fcfa03744d9afa8c502250b6109585dd6 (patch) | |
tree | 7cef45ad3af4c33a3db86d0b62c475bf1642ab8d | |
parent | 3b075825f1f2fc3578024454a8970e3797248209 (diff) | |
download | Nix-af421a8fcfa03744d9afa8c502250b6109585dd6.tar.gz Nix-af421a8fcfa03744d9afa8c502250b6109585dd6.tar.zst Nix-af421a8fcfa03744d9afa8c502250b6109585dd6.zip |
Add mailer spool
-rw-r--r-- | nixops/eldiron.nix | 1 | ||||
-rw-r--r-- | nixops/modules/mail/default.nix | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/nixops/eldiron.nix b/nixops/eldiron.nix index 337ea2f..7ce33a9 100644 --- a/nixops/eldiron.nix +++ b/nixops/eldiron.nix | |||
@@ -24,6 +24,7 @@ | |||
24 | ./modules/gitolite | 24 | ./modules/gitolite |
25 | ./modules/databases | 25 | ./modules/databases |
26 | ./modules/websites | 26 | ./modules/websites |
27 | ./modules/mail | ||
27 | ]; | 28 | ]; |
28 | services.myGitolite.enable = true; | 29 | services.myGitolite.enable = true; |
29 | services.myDatabases.enable = true; | 30 | services.myDatabases.enable = true; |
diff --git a/nixops/modules/mail/default.nix b/nixops/modules/mail/default.nix new file mode 100644 index 0000000..eeb28aa --- /dev/null +++ b/nixops/modules/mail/default.nix | |||
@@ -0,0 +1,10 @@ | |||
1 | { lib, pkgs, config, myconfig, mylibs, ... }: | ||
2 | { | ||
3 | config.services.nullmailer = { | ||
4 | enable = true; | ||
5 | config = { | ||
6 | me = myconfig.env.mail.host; | ||
7 | remotes = "${myconfig.env.mail.relay} smtp"; | ||
8 | }; | ||
9 | }; | ||
10 | } | ||