Browse Source

nixbld: handle incoming RT emails

master
Sebastien Bourdeauducq 2 months ago
parent
commit
0e548d1eff
  1. 11
      nixbld-etc-nixos/configuration.nix

11
nixbld-etc-nixos/configuration.nix

@ -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";
}
Loading…
Cancel
Save