mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-05-12 17:41:15 +02:00
35 lines
827 B
Nix
35 lines
827 B
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
services.postfix.enable = lib.mkForce false;
|
|
|
|
services.nullmailer = {
|
|
enable = true;
|
|
config = {
|
|
me = config.networking.fqdn;
|
|
remotes = "mail.pvv.ntnu.no smtp --port=25";
|
|
};
|
|
};
|
|
|
|
systemd.sockets.userweb-sendmail-sandbox-proxy = {
|
|
wantedBy = [ "sockets.target" ];
|
|
listenStreams = [ "/run/userweb-sendmail-sandbox-proxy.sock" ];
|
|
socketConfig = {
|
|
# Accept = true;
|
|
SocketUser = "httpd";
|
|
SocketGroup = "httpd"; # TODO: is wwwrun(54) in this group?
|
|
SocketMode = "0660";
|
|
};
|
|
};
|
|
|
|
systemd.services.userweb-sendmail-sandbox-proxy = {
|
|
serviceConfig = {
|
|
User = "root";
|
|
Group = "root";
|
|
Sockets = [
|
|
"userweb-sendmail-sandbox-proxy.socket"
|
|
];
|
|
ExecStart = "${lib.getExe pkgs.hello}";
|
|
};
|
|
};
|
|
}
|