15 lines
302 B
Nix
15 lines
302 B
Nix
# Module: roles/mailserver
|
|
# Enables a mail server using Stalwart
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.mailserver;
|
|
in {
|
|
options.mailserver = {
|
|
enable = mkEnableOption "Enables dbserver-mariadb role";
|
|
};
|
|
|
|
config = mkIf cfg.enable { imports = [ ../apps/stalwart.nix ]; };
|
|
}
|