30 lines
1 KiB
Nix
30 lines
1 KiB
Nix
|
{ config, pkgs, ... }:
|
||
|
{
|
||
|
imports = [
|
||
|
(builtins.fetchTarball {
|
||
|
# Pick a commit from the branch you are interested in
|
||
|
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/6e3a7b2ea6f0d68b82027b988aa25d3423787303/nixos-mailserver-6e3a7b2ea6f0d68b82027b988aa25d3423787303.tar.gz";
|
||
|
# And set its hash
|
||
|
sha256 = "1i56llz037x416bw698v8j6arvv622qc0vsycd20lx3yx8n77n44";
|
||
|
})
|
||
|
];
|
||
|
|
||
|
mailserver = {
|
||
|
enable = true;
|
||
|
fqdn = "anarkafem.dev";
|
||
|
domains = [ "anarkafem.dev" ];
|
||
|
|
||
|
# A list of all login accounts. To create the password hashes, use
|
||
|
# nix run nixpkgs.apacheHttpd -c htpasswd -nbB "" "super secret password" | cut -d: -f2
|
||
|
loginAccounts = {
|
||
|
"noreply@anarkafem.dev" = {
|
||
|
hashedPasswordFile = config.secrets.files.email_noreply.file;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
keyFile = config.security.acme.certs."anarkafem.dev".directory + "/key.pem";
|
||
|
certificateFile = config.security.acme.certs."anarkafem.dev".directory + "/cert.pem";
|
||
|
certificateScheme = 1;
|
||
|
};
|
||
|
}
|