From 9363c9e00468f25c6d885a75c3705fe87ba00f0a Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sat, 17 Dec 2022 15:56:06 +0100 Subject: [PATCH] services/alps: use the nixos module (since nixos 22.11 comes with one) --- services/mail.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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" = {