about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Ramsden <johnramsden@users.noreply.github.com>2017-06-28 15:56:41 -0700
committerJohn Ramsden <johnramsden@users.noreply.github.com>2017-06-28 15:56:41 -0700
commit3fddb48020aab9934752b1f19e5c35d7d3881a05 (patch)
tree910404d33f57546e829b5eb9587f9b6ee13290e2
parent69ecd62a955d8ddd640b2ebb94d451ce3318be7a (diff)
downloadnixlib-3fddb48020aab9934752b1f19e5c35d7d3881a05.tar
nixlib-3fddb48020aab9934752b1f19e5c35d7d3881a05.tar.gz
nixlib-3fddb48020aab9934752b1f19e5c35d7d3881a05.tar.bz2
nixlib-3fddb48020aab9934752b1f19e5c35d7d3881a05.tar.lz
nixlib-3fddb48020aab9934752b1f19e5c35d7d3881a05.tar.xz
nixlib-3fddb48020aab9934752b1f19e5c35d7d3881a05.tar.zst
nixlib-3fddb48020aab9934752b1f19e5c35d7d3881a05.zip
Add Nylas mail module. Still needs keyring configuration
-rw-r--r--nixos/modules/programs/nylas-mail.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/nixos/modules/programs/nylas-mail.nix b/nixos/modules/programs/nylas-mail.nix
new file mode 100644
index 000000000000..d1427d890245
--- /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 {
+
+
+
+  };
+}