Create email feature

This commit is contained in:
Sridhar Ratnakumar 2021-04-07 20:00:40 -04:00
parent 3e47c41cdd
commit c0f519099b
5 changed files with 30 additions and 198 deletions

View file

@ -0,0 +1,6 @@
{ pkgs, ... }: {
imports = [
./protonmail-bridge.nix
./himalaya-client.nix
];
}

View file

@ -0,0 +1,17 @@
{ pkgs, lib, ... }: {
environment.systemPackages =
let
# FIXME: This leads to forbidden error
# himalaya = toString inputs.himalaya.defaultApp."${system}".program;
# Wrap himalaya to be aware of ProtonMail's bridge cert.
himalayaWithSslEnv =
pkgs.writeScriptBin "h" ''
#!${pkgs.stdenv.shell}
export SSL_CERT_FILE=~/.config/protonmail/bridge/cert.pem
exec nix run github:srid/himalaya/nixify $*
'';
in
[
himalayaWithSslEnv
];
}