rework email module

This commit is contained in:
Moritz Böhme 2022-09-27 18:02:45 +02:00
parent fff714f7aa
commit aa42f6678e
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
10 changed files with 27 additions and 80 deletions

View file

@ -11,6 +11,7 @@
./code.nix
./direnv.nix
./emacs.nix
./email.nix
./firefox.nix
./fish.nix
./git.nix

View file

@ -0,0 +1,25 @@
{ 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 ];
};
}