2022-10-25 09:53:40 +02:00
|
|
|
{ pkgs, lib, config, options, ... }:
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
2024-01-30 14:00:15 +01:00
|
|
|
cfg = config.personal.programs.mail;
|
2022-10-25 09:53:40 +02:00
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
2024-01-30 14:00:15 +01:00
|
|
|
personal = {
|
2022-10-25 09:53:40 +02:00
|
|
|
programs = {
|
2023-01-16 10:00:01 +01:00
|
|
|
mail = {
|
|
|
|
enable = mkEnableOption "Mail";
|
2022-10-25 09:53:40 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
2024-07-17 16:05:33 +02:00
|
|
|
# betterbird
|
2022-11-23 14:34:46 +01:00
|
|
|
mailspring
|
2022-10-25 09:53:40 +02:00
|
|
|
];
|
|
|
|
};
|
2024-01-30 14:00:15 +01:00
|
|
|
|
|
|
|
# nixpkgs = {
|
|
|
|
# config = {
|
|
|
|
# permittedInsecurePackages = [
|
|
|
|
# "mailspring-1.13.3"
|
|
|
|
# ];
|
|
|
|
# };
|
|
|
|
# };
|
2022-10-25 09:53:40 +02:00
|
|
|
};
|
|
|
|
}
|