BIG changes. Make almost every server service modular, to distribute among multiple servers

This commit is contained in:
Bun 2025-03-18 05:32:05 -04:00
parent 30fc0dc800
commit 7e40fd4fb3
44 changed files with 153 additions and 143 deletions

View file

@ -3,7 +3,7 @@
imports = [ ./nginx ];
services.go-autoconfig = {
enable = config.system.mailserver.enable;
enable = config.services.mailserver.enable;
settings = {
service_addr = ":1323";
domain = "autoconfig.nixfox.ca";

View file

@ -1,6 +1,6 @@
{ config, lib, ... }:
{
services.nginx.virtualHosts."autoconfig.nixfox.ca" = lib.mkIf config.mailserver.enable {
services.nginx.virtualHosts."autoconfig.nixfox.ca" = lib.mkIf config.services.go-autoconfig.enable {
enableACME = true;
forceSSL = true;
locations."/" = {