25 lines
418 B
Nix
Executable File
25 lines
418 B
Nix
Executable File
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
namespace,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.${namespace}.services.protonmail;
|
|
in
|
|
{
|
|
options.${namespace}.services.protonmail = {
|
|
enable = lib.mkEnableOption "protonmail bridge";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.protonmail-bridge = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [ pass ];
|
|
};
|
|
|
|
home.packages = with pkgs; [ protonmail-bridge-gui ];
|
|
};
|
|
}
|