mail2-nixos-config/nixos-mailserver/default.nix
2024-05-20 20:59:26 +02:00

21 lines
617 B
Nix

{ config, pkgs, ... }:
{
# Import some configuration as they are too long to be easily readable here
imports = [
./options.nix
./dovecot.nix
./postfix.nix
./postfixadmin.nix
./roundcube.nix
./rspamd.nix
];
users.groups."${config.services.mymailserver.internal.vmailGroup}" = { gid = config.services.mymailserver.internal.vmailGID; };
users.users."${config.services.mymailserver.internal.vmailUser}" = {
isSystemUser = true;
uid = config.services.mymailserver.internal.vmailUID;
group = config.services.mymailserver.internal.vmailGroup;
hashedPassword = "!";
};
}