mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
31 lines
823 B
Nix
31 lines
823 B
Nix
{config, ...}: {
|
|
sops.secrets.kat-password = {
|
|
sopsFile = ./secrets.yaml;
|
|
};
|
|
mailserver = {
|
|
enable = true;
|
|
stateVersion = 3;
|
|
fqdn = "rinnosuke.inskip.me";
|
|
domains = ["dork.dev"];
|
|
|
|
# A list of all login accounts. To create the password hashes, use
|
|
# nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt'
|
|
loginAccounts = {
|
|
"kat@dork.dev" = {
|
|
hashedPasswordFile = config.sops.secrets.kat-password.path;
|
|
aliases = [
|
|
"@dork.dev"
|
|
];
|
|
catchAll = [
|
|
"dork.dev"
|
|
];
|
|
};
|
|
};
|
|
|
|
# Use Let's Encrypt certificates. Note that this needs to set up a stripped
|
|
# down nginx and opens port 80.
|
|
certificateScheme = "acme-nginx";
|
|
};
|
|
security.acme.acceptTerms = true;
|
|
security.acme.defaults.email = "security@inskip.me";
|
|
}
|