2024-01-02 21:43:04 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [ ../modules/snappymail.nix ];
|
2023-08-12 22:00:15 +02:00
|
|
|
|
2024-01-02 21:43:04 +01:00
|
|
|
services.snappymail = {
|
|
|
|
enable = true;
|
|
|
|
hostname = "mail.home.feal.no";
|
2023-08-12 22:00:15 +02:00
|
|
|
};
|
2024-01-02 21:43:04 +01:00
|
|
|
services.nginx.virtualHosts."${config.services.snappymail.hostname}" = let
|
2024-01-15 10:22:07 +01:00
|
|
|
certPath = "/etc/ssl-snakeoil/home.feal.no";
|
2024-01-02 21:43:04 +01:00
|
|
|
in {
|
|
|
|
addSSL = true;
|
2023-08-12 22:00:15 +02:00
|
|
|
|
2024-01-02 21:43:04 +01:00
|
|
|
sslCertificate = "${certPath}.crt";
|
|
|
|
sslCertificateKey = "${certPath}.key";
|
2023-08-12 22:00:15 +02:00
|
|
|
};
|
|
|
|
}
|