dotfiles/nixos/services/email.nix

23 lines
626 B
Nix
Raw Normal View History

2022-05-15 14:35:03 +02:00
{ config, pkgs, lib, inputs, ... }:
{
imports = [ inputs.nixos-mailserver.nixosModule ];
2022-10-16 13:50:43 +02:00
age.secrets.yorick-mail-pass.file = ../../secrets/yorick-mail-pass.age;
2021-01-03 22:06:31 +01:00
mailserver = rec {
enable = true;
fqdn = "pennyworth.yori.cc";
domains = [ "yori.cc" "yorickvanpelt.nl" ];
loginAccounts = {
"yorick@yori.cc" = {
2022-10-16 13:50:43 +02:00
hashedPasswordFile = config.age.secrets.yorick-mail-pass.path;
2021-01-03 22:06:31 +01:00
catchAll = domains;
aliases = [ "@yori.cc" "@yorickvanpelt.nl" ];
};
};
certificateScheme = 3;
enableImapSsl = true;
};
services.borgbackup.jobs.backup.paths = [ "/var/vmail" ];
}