From 3fddb48020aab9934752b1f19e5c35d7d3881a05 Mon Sep 17 00:00:00 2001 From: John Ramsden Date: Wed, 28 Jun 2017 15:56:41 -0700 Subject: [PATCH] Add Nylas mail module. Still needs keyring configuration --- nixos/modules/programs/nylas-mail.nix | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 nixos/modules/programs/nylas-mail.nix diff --git a/nixos/modules/programs/nylas-mail.nix b/nixos/modules/programs/nylas-mail.nix new file mode 100644 index 00000000000..d1427d89024 --- /dev/null +++ b/nixos/modules/programs/nylas-mail.nix @@ -0,0 +1,43 @@ +{ 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."; + }; + + package = mkOption { + type = types.package; + default = pkgs.nylas-mail; + defaultText = "pkgs.nylas-mail"; + example = literalExample "pkgs.nylas-mail"; + description = '' + nylas-mail package to use. + ''; + }; + }; + }; + + + ###### implementation + + config = mkIf cfg.enable { + + + + }; +}