Migrate mailserver to ponyo

This commit is contained in:
2023-03-11 22:36:52 -07:00
parent a5f7bb8a22
commit ecb6d1ef63
7 changed files with 113 additions and 93 deletions

View File

@@ -0,0 +1,26 @@
{ config, pkgs, lib, ... }:
let
cfg = config.services.nextcloud;
in {
config = lib.mkIf cfg.enable {
services.nextcloud = {
https = true;
package = pkgs.nextcloud23;
hostName = "neet.cloud";
config.dbtype = "sqlite";
config.adminuser = "jeremy";
config.adminpassFile = "/run/agenix/nextcloud-pw";
autoUpdateApps.enable = true;
};
age.secrets.nextcloud-pw = {
file = ../../secrets/nextcloud-pw.age;
owner = "nextcloud";
};
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
enableACME = true;
forceSSL = true;
};
};
}