25 lines
410 B
Nix
25 lines
410 B
Nix
{ config
|
|
, lib
|
|
, pkgs
|
|
, ...
|
|
}:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.my.programs.email;
|
|
in
|
|
{
|
|
options.my.programs.email = {
|
|
enable = mkOption {
|
|
default = false;
|
|
type = types.bool;
|
|
example = true;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
# Email Applications
|
|
users.users.moritz.packages = with pkgs; [ thunderbird ];
|
|
networking.firewall.allowedTCPPorts = [ 33728 1025 1143 ];
|
|
};
|
|
}
|