forked from hacc/haccfiles
services/alps: use the nixos module
(since nixos 22.11 comes with one)
This commit is contained in:
parent
34a147afe6
commit
9363c9e004
1 changed files with 11 additions and 6 deletions
|
@ -170,13 +170,18 @@
|
||||||
@infra4future.de @hacc.space
|
@infra4future.de @hacc.space
|
||||||
'';
|
'';
|
||||||
|
|
||||||
systemd.services.alps = {
|
services.alps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
script =
|
theme = "alps";
|
||||||
"${pkgs.alps}/bin/alps -theme alps imaps://mail.hacc.space:993 smtps://mail.hacc.space:465";
|
smtps = {
|
||||||
serviceConfig.WorkingDirectory = "${pkgs.alps.src}";
|
port = 465;
|
||||||
serviceConfig.Restart = "always";
|
host = "mail.hacc.space";
|
||||||
requiredBy = [ "multi-user.target" ];
|
};
|
||||||
|
imaps = {
|
||||||
|
port = 993;
|
||||||
|
host = "mail.hacc.space";
|
||||||
|
};
|
||||||
|
bindIP = "[::1]";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."mail.hacc.space" = {
|
services.nginx.virtualHosts."mail.hacc.space" = {
|
||||||
|
|
Loading…
Reference in a new issue