Start protonmail-bridge as a systemd service

This commit is contained in:
Sridhar Ratnakumar 2021-04-06 22:27:17 -04:00
parent ced6fb09bb
commit 31aa09f918

View file

@ -1,4 +1,17 @@
{ pkgs, ... }: {
environment.systemPackages = [ pkgs.protonmail-bridge ];
services.gnome3.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";
};
};
}