all repos — nixfiles @ e6bd9a64bbcf404ea71be8485d07d3fee54f2b79

System and user configuration, managed by nix and home-manager

linde: enable mailing from goatcounter

Alan Pearce
commit

e6bd9a64bbcf404ea71be8485d07d3fee54f2b79

parent

9dfbbb14469ade2b52fd41a1b88ee2c08ef0cdaa

1 file changed, 21 insertions(+), 0 deletions(-)

jump to
M system/linde.nixsystem/linde.nix
@@ -15,6 +15,7 @@ net-ip6 = "2a01:4f8:c012:23a4::1";
net-rdnsip = "2a01:4f8:c012:23a4::53"; net-mask6 = "64"; net-gw6 = "fe80::1"; + domain = "alanpearce.eu"; ts-domain = "hydra-pinecone.ts.net"; golink = (builtins.getFlake (toString <golink>)).nixosModules.default; in
@@ -156,6 +157,7 @@ };
networking = { hostName = hostname; + inherit domain; useDHCP = false; dhcpcd.enable = false; nameservers = [
@@ -354,6 +356,7 @@ settings = {
tls = "proxy"; websocket = true; automigrate = true; + smtp = "smtp://localhost:25"; }; };
@@ -457,6 +460,24 @@ "HOME=%C/blocklist"
]; }; }; + + services.postfix = + let + localUser = "alan"; + forwardingAddress = "alan@alanpearce.eu"; + in + { + enable = true; + destination = [ ]; + domain = config.networking.domain; + virtual = '' + @${config.networking.hostName}.${config.networking.domain} ${localUser} + ${localUser} ${forwardingAddress} + ''; + config = { + inet_interfaces = "loopback-only"; + }; + }; services.kresd = { enable = true;