diff --git a/services/mail.nix b/services/mail.nix index 2a90745..5794e50 100644 --- a/services/mail.nix +++ b/services/mail.nix @@ -170,13 +170,18 @@ @infra4future.de @hacc.space ''; - systemd.services.alps = { + services.alps = { enable = true; - script = - "${pkgs.alps}/bin/alps -theme alps imaps://mail.hacc.space:993 smtps://mail.hacc.space:465"; - serviceConfig.WorkingDirectory = "${pkgs.alps.src}"; - serviceConfig.Restart = "always"; - requiredBy = [ "multi-user.target" ]; + theme = "alps"; + smtps = { + port = 465; + host = "mail.hacc.space"; + }; + imaps = { + port = 993; + host = "mail.hacc.space"; + }; + bindIP = "[::1]"; }; services.nginx.virtualHosts."mail.hacc.space" = {