From 5e50b617fbf64ab9201e5d405a4602cf19f7fc5c Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 11 May 2026 13:38:11 +0900 Subject: [PATCH] temmie/userweb: switch from postfix to nullmailer --- hosts/temmie/configuration.nix | 2 +- .../services/{userweb.nix => userweb/default.nix} | 4 ++++ hosts/temmie/services/userweb/mail.nix | 12 ++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) rename hosts/temmie/services/{userweb.nix => userweb/default.nix} (99%) create mode 100644 hosts/temmie/services/userweb/mail.nix diff --git a/hosts/temmie/configuration.nix b/hosts/temmie/configuration.nix index a7e2b19..1ec8458 100644 --- a/hosts/temmie/configuration.nix +++ b/hosts/temmie/configuration.nix @@ -6,7 +6,7 @@ (fp /base) ./services/nfs-mounts.nix - ./services/userweb.nix + ./services/userweb ]; systemd.network.networks."30-ens18" = values.defaultNetworkConfig // { diff --git a/hosts/temmie/services/userweb.nix b/hosts/temmie/services/userweb/default.nix similarity index 99% rename from hosts/temmie/services/userweb.nix rename to hosts/temmie/services/userweb/default.nix index 418b95a..f9b9fa6 100644 --- a/hosts/temmie/services/userweb.nix +++ b/hosts/temmie/services/userweb/default.nix @@ -155,6 +155,10 @@ let }; in { + imports = [ + ./mail.nix + ]; + services.httpd = { enable = true; adminAddr = "drift@pvv.ntnu.no"; diff --git a/hosts/temmie/services/userweb/mail.nix b/hosts/temmie/services/userweb/mail.nix new file mode 100644 index 0000000..203cddf --- /dev/null +++ b/hosts/temmie/services/userweb/mail.nix @@ -0,0 +1,12 @@ +{ config, lib, ... }: +{ + services.postfix.enable = lib.mkForce false; + + services.nullmailer = { + enable = true; + config = { + me = config.networking.fqdn; + remotes = "mail.pvv.ntnu.no smtp --port=25"; + }; + }; +}