26 lines
410 B
Nix
26 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 ];
|
||
|
};
|
||
|
}
|