Add Nylas mail module. Still needs keyring configuration
This commit is contained in:
parent
69ecd62a95
commit
3fddb48020
43
nixos/modules/programs/nylas-mail.nix
Normal file
43
nixos/modules/programs/nylas-mail.nix
Normal file
@ -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 {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user