nixos-config/features/email/protonmail-bridge.nix
Sridhar Ratnakumar 9e61aeb8f8 Update, etc.
2021-05-21 13:47:57 -04:00

17 lines
550 B
Nix

{ pkgs, ... }: {
environment.systemPackages = [ pkgs.protonmail-bridge ];
services.gnome.gnome-keyring.enable = true;
# Before starting the service, use `protonmail-bridge --cli` and run 'login'
# to configure.
systemd.user.services.protonmail-bridge = {
description = "Protonmail Bridge";
after = [ "network.target" ];
wantedBy = [ "default.target" ];
path = [ pkgs.pass ];
serviceConfig = {
Restart = "always";
ExecStart = "${pkgs.protonmail-bridge}/bin/protonmail-bridge --noninteractive";
};
};
}