Merge branch 'main' of ssh://gitea.xeovalyte.dev:2222/xeovalyte/nix

This commit is contained in:
Timo Boomers 2025-05-16 14:27:57 +02:00
commit 92f20c250b
Signed by: xeovalyte
SSH Key Fingerprint: SHA256:GWI1hq+MNKR2UOcvk7n9tekASXT8vyazK7vDF9Xyciw
4 changed files with 47 additions and 0 deletions

View File

@ -55,6 +55,7 @@
homeassistant.enable = true;
karakeep.enable = true;
vikunja.enable = true;
stalwart.enable = true;
};
};

View File

@ -19,6 +19,9 @@ in {
services.podman.containers.caddy = {
image = "localhost/tboomers/caddy-custom:latest";
network = "proxy";
networkAlias = [
"mail.tbmrs.nl"
];
ports = [
"1080:80"
"1443:443"
@ -76,6 +79,11 @@ in {
handle @dufs {
reverse_proxy dufs:5000
}
@stalwart host mail.tbmrs.nl
handle @stalwart {
reverse_proxy stalwart:8080
}
}
*.local.tbmrs.nl {

View File

@ -0,0 +1,37 @@
{ config, lib, ... }:
with lib;
let
cfg = config.settings.containers.stalwart;
in {
options = {
settings.containers.stalwart.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Enable stalwart mailserver container
'';
};
};
config = mkIf cfg.enable {
services.podman.containers.stalwart = {
image = "stalwartlabs/mail-server:latest";
network = "proxy";
ports = [
"1025:25"
"1587:587"
"1465:465"
"1143:143"
"1993:993"
"14190:4190"
"1110:110"
"1995:995"
];
volumes = [
"%h/containers/stalwart/data:/opt/stalwart-mail"
];
};
};
}

View File

@ -43,5 +43,6 @@
./containers/homeassistant.nix
./containers/karakeep.nix
./containers/vikunja.nix
./containers/stalwart.nix
];
}