services/alps: use the nixos module

(since nixos 22.11 comes with one)
This commit is contained in:
stuebinm 2022-12-17 15:56:06 +01:00
parent 34a147afe6
commit 9363c9e004

View file

@ -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" = {