diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/linde.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/system/linde.nix b/system/linde.nix index 7b3e944a..c9da9e65 100644 --- a/system/linde.nix +++ b/system/linde.nix @@ -15,6 +15,7 @@ let 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 @@ in networking = { hostName = hostname; + inherit domain; useDHCP = false; dhcpcd.enable = false; nameservers = [ @@ -354,6 +356,7 @@ in tls = "proxy"; websocket = true; automigrate = true; + smtp = "smtp://localhost:25"; }; }; @@ -458,6 +461,24 @@ in }; }; + 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; # package = pkgs.knot-resolver.override { extraFeatures = true; }; |