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
|
||||
'';
|
||||
|
||||
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" = {
|
||||
|
|
Loading…
Reference in a new issue