1{ config, lib, pkgs, ... }:
2
3with lib;
4
5let
6 cfg = config.services.nylas-mail;
7in {
8 ###### interface
9 options = {
10 services.nylas-mail = {
11
12 enable = mkEnableOption ''
13 nylas-mail - Open-source mail client built on the modern web with Electron, React, and Flux
14 '';
15
16 gnome3-keyring = mkOption {
17 type = types.bool;
18 default = true;
19 description = "Enable gnome3 keyring for nylas-mail.";
20 };
21 };
22 };
23
24
25 ###### implementation
26
27 config = mkIf cfg.enable {
28
29 environment.systemPackages = [ pkgs.nylas-mail-bin ];
30
31 services.gnome3.gnome-keyring = mkIf cfg.gnome3-keyring {
32 enable = true;
33 };
34
35 };
36}