aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixops/eldiron.nix1
-rw-r--r--nixops/modules/mail/default.nix10
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}