2024-11-17 00:08:02 +01:00
|
|
|
{ config, lib, fp, pkgs, ... }:
|
2024-05-25 23:44:29 +02:00
|
|
|
let
|
|
|
|
cfg = config.services.snappymail;
|
|
|
|
in {
|
2024-11-17 00:08:02 +01:00
|
|
|
imports = [ (fp /modules/snappymail.nix) ];
|
2024-05-25 23:44:29 +02:00
|
|
|
|
|
|
|
services.snappymail = {
|
|
|
|
enable = true;
|
|
|
|
hostname = "snappymail.pvv.ntnu.no";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts.${cfg.hostname} = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
kTLS = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|