nixos-config/hosts/voyager/services/snappymail.nix

18 lines
406 B
Nix
Raw Normal View History

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
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
};
}