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