2017-06-28 16:56:41 -06:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.nylas-mail;
|
|
|
|
in {
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.nylas-mail = {
|
|
|
|
|
|
|
|
enable = mkEnableOption ''
|
|
|
|
nylas-mail - Open-source mail client built on the modern web with Electron, React, and Flux
|
|
|
|
'';
|
|
|
|
|
|
|
|
gnome3-keyring = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
description = "Enable gnome3 keyring for nylas-mail.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
2017-07-05 17:28:01 -06:00
|
|
|
environment.systemPackages = [ pkgs.nylas-mail-bin ];
|
2017-06-28 16:56:41 -06:00
|
|
|
|
2017-06-28 17:13:10 -06:00
|
|
|
services.gnome3.gnome-keyring = mkIf cfg.gnome3-keyring {
|
|
|
|
enable = true;
|
|
|
|
};
|
2017-06-28 16:56:41 -06:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|