Added snappymail test config

This commit is contained in:
2023-08-12 22:00:15 +02:00
parent da3041ef4f
commit 7deacb7b55
2 changed files with 123 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
./wireguard.nix
./exports.nix
./services/snappymail.nix
#./vms.nix
./services/nginx
@@ -25,6 +26,7 @@
./services/vaultwarden.nix
./services/calibre.nix
# ./services/code-server.nix
];
networking = {
@@ -84,6 +86,19 @@
exa
];
services.snappymail = {
enable = true;
hostname = "mail.home.feal.no";
};
services.nginx.virtualHosts."${config.services.snappymail.hostname}" = let
certPath = "/etc/ssl-snakeoil/mail_home_feal_no";
in {
addSSL = true;
sslCertificate = "${certPath}.crt";
sslCertificateKey = "${certPath}.key";
};
/* virtualisation.podman = { */
/* enable = true; */
/* dockerCompat = true; # Make `docker` shell alias */