Fix some firewall rules

This commit is contained in:
Bun 2025-03-18 06:09:07 -04:00
parent 7e40fd4fb3
commit d3a7fe8158
6 changed files with 26 additions and 17 deletions

View file

@ -1,20 +1,25 @@
{ config, ... }:
{ config, lib, ... }:
{
imports = [ ./nginx ];
services.go-autoconfig = {
enable = config.services.mailserver.enable;
settings = {
service_addr = ":1323";
domain = "autoconfig.nixfox.ca";
imap = {
server = "mx.nixfox.ca";
port = 143;
};
smtp = {
server = "mx.nixfox.ca";
port = 587;
config = lib.mkIf config.services.mailserver.enable {
services = {
go-autoconfig = {
enable = true;
settings = {
service_addr = ":1323";
domain = "autoconfig.nixfox.ca";
imap = {
server = "mx.nixfox.ca";
port = 143;
};
smtp = {
server = "mx.nixfox.ca";
port = 587;
};
};
};
cloudflare-dyndns.domains = [ config.services.go-autoconfig.settings.domain ];
};
};
}