From 4573eb70ff4242cba08e668cfbe775087ff5c3ca Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Thu, 21 Nov 2024 18:03:51 -0600 Subject: [PATCH] vps: add roundcube --- sys/platforms/vps/srv/default.nix | 1 + sys/platforms/vps/srv/roundcube.nix | 51 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 sys/platforms/vps/srv/roundcube.nix diff --git a/sys/platforms/vps/srv/default.nix b/sys/platforms/vps/srv/default.nix index ead3824..65bffff 100644 --- a/sys/platforms/vps/srv/default.nix +++ b/sys/platforms/vps/srv/default.nix @@ -21,5 +21,6 @@ with lib; { ./paperless.nix ./trilium.nix ./firefly.nix + ./roundcube.nix ]; } diff --git a/sys/platforms/vps/srv/roundcube.nix b/sys/platforms/vps/srv/roundcube.nix new file mode 100644 index 0000000..0908a3b --- /dev/null +++ b/sys/platforms/vps/srv/roundcube.nix @@ -0,0 +1,51 @@ +{ + lib, + pkgs, + ... +}: +with lib; { + services = { + nginx = { + virtualHosts."mail.posixlycorrect.com" = { + enableACME = true; + forceSSL = true; + extraConfig = '' + proxy_headers_hash_max_size 512; + proxy_headers_hash_bucket_size 128; + ''; + }; + }; + + roundcube = { + enable = true; + hostName = "mail.posixlycorrect.com"; + configureNginx = true; + maxAttachmentSize = 2048; #MB + plugins = [ + "archive" + "attachment_reminder" + "carddav" + "contextmenu" + "custom_from" + "emoticons" + "enigma" + "hide_blockquote" + "managesieve" + "markasjunk" + "newmail_notifier" + "password" + "persistent_login" + "reconnect" + "show_additional_headers" + "userinfo" + "vcard_attachments" + "zipdownload" + ]; + + dicts = with pkgs.aspellDicts; [ + es + en + ]; + }; + }; +}