2017-06-29 01:56:41 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.nylas-mail;
|
|
|
|
defaultUser = "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-06 02:28:01 +03:00
|
|
|
environment.systemPackages = [ pkgs.nylas-mail-bin ];
|
2017-06-29 01:56:41 +03:00
|
|
|
|
2017-06-29 02:13:10 +03:00
|
|
|
services.gnome3.gnome-keyring = mkIf cfg.gnome3-keyring {
|
|
|
|
enable = true;
|
|
|
|
};
|
2017-06-29 01:56:41 +03:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|