nixbld: handle incoming RT emails

pull/20/head
Sebastien Bourdeauducq 2021-08-11 11:57:05 +08:00
parent e3578011a5
commit 0e548d1eff
1 changed files with 11 additions and 0 deletions

View File

@ -767,6 +767,17 @@ in
sendmailPath = "${pkgs.msmtp}/bin/msmtp";
sendmailArguments = ["-t" "-C" "/etc/nixos/secret/rt_msmtp.conf"];
};
systemd.services.rt-fetchmail = {
description = "Fetchmail for RT";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
Restart = "on-failure";
User = "rt";
Group = "rt";
ExecStart = "${pkgs.bash}/bin/bash -c 'PATH=${pkgs.rt}/bin HOME=/tmp ${pkgs.fetchmail}/bin/fetchmail -f /etc/nixos/secret/rt_fetchmailrc'";
};
};
system.stateVersion = "21.05";
}