simple nixos mail server
This commit is contained in:
parent
6bee6cb48c
commit
b4298d5f3e
7 changed files with 169 additions and 10 deletions
|
|
@ -11,6 +11,7 @@
|
|||
./firefox-sync.nix
|
||||
./git.nix
|
||||
./hardware-configuration.nix
|
||||
./mail.nix
|
||||
./networking.nix
|
||||
./nextcloud.nix
|
||||
./services.nix
|
||||
|
|
|
|||
18
host/roam/mail.nix
Normal file
18
host/roam/mail.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ inputs, config, ... }:
|
||||
{
|
||||
imports = [ inputs.simple-nixos-mailserver.nixosModule ];
|
||||
|
||||
mailserver = {
|
||||
enable = true;
|
||||
stateVersion = 3;
|
||||
fqdn = "roam.hdohmen.de";
|
||||
x509.useACMEHost = config.mailserver.fqdn;
|
||||
domains = [ "hdohmen.de" ];
|
||||
loginAccounts = {
|
||||
"hd@hdohmen.de" = {
|
||||
hashedPassword = "$y$j9T$ThusPQJOPsUxfJrO6T6kN/$4hoobYwjhxSLo.f8uWg7DZu7gHtRlUt.nfiDC5xN2w2";
|
||||
aliases = [ "hd@hdohmen.de" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -21,6 +21,17 @@ in
|
|||
interface = "ens3";
|
||||
};
|
||||
|
||||
firewall = {
|
||||
enable = true;
|
||||
interfaces."wg0" = {
|
||||
allowedTCPPorts = [ 25565 ];
|
||||
};
|
||||
allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
];
|
||||
};
|
||||
|
||||
nat = {
|
||||
enable = true;
|
||||
externalInterface = "ens3";
|
||||
|
|
|
|||
|
|
@ -47,14 +47,4 @@
|
|||
};
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
interfaces."wg0" = {
|
||||
allowedTCPPorts = [ 25565 ];
|
||||
};
|
||||
allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue