fix: better email config

Deals with #32
This commit is contained in:
silver 2023-10-13 09:54:47 +01:00
parent 487fb3f0bf
commit 19a7476278

View file

@ -6,6 +6,9 @@
}:
with lib; let
cfg = config.services.skynet_gitlab;
domain_base = "${cfg.domain.base}.${cfg.domain.tld}";
domain_full = "${cfg.domain.sub}.${domain_base}";
in {
imports = [
./acme.nix
@ -146,7 +149,11 @@ in {
};
# set a valid HELO address
services.postfix.hostname = lib.mkForce "${cfg.domain.sub}.${cfg.domain.base}.${cfg.domain.tld}";
services.postfix = {
hostname = lib.mkForce domain_full;
origin = lib.mkForce domain_full;
domain = lib.mkForce domain_base;
};
services.gitlab = {
enable = true;