summaryrefslogtreecommitdiffstats
path: root/nixos/modules/programs/geary.nix
blob: 6c881dc8ccafde21157408fb3cbcc330c5f0a546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  config,
  pkgs,
  lib,
  ...
}:

let
  cfg = config.programs.geary;

in
{
  meta = {
    teams = [ lib.teams.gnome ];
  };

  options = {
    programs.geary.enable = lib.mkEnableOption "Geary, a Mail client for GNOME";
  };

  config = lib.mkIf cfg.enable {
    environment.systemPackages = [ pkgs.geary ];
    programs.dconf.enable = true;
    services.gnome.gnome-keyring.enable = true;
    services.gnome.gnome-online-accounts.enable = true;
  };
}