blob: d60f8023926f11cefa38b1fa8bd1e9360f096aa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ config, lib, pkgs, ... }:
let
cfg = config.hm.soft.email;
in
{
options.hm.soft.email = {
thunderbird.enable = lib.mkEnableOption "thunderbird config";
evolution.enable = lib.mkEnableOption "evolution config";
};
config = lib.mkMerge [
(lib.mkIf cfg.thunderbird.enable {
programs.thunderbird.enable = true;
})
(lib.mkIf cfg.evolution.enable {
home.packages = [ pkgs.evolution ];
})
];
}
|