21 lines
461 B
Nix
21 lines
461 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
home.packages = [ pkgs.protonmail-bridge ];
|
|
|
|
systemd.user.services.protonmail-bridge = {
|
|
Unit = {
|
|
Description = "ProtonMail Bridge";
|
|
After = [ "graphical-session.target" ];
|
|
};
|
|
Service = {
|
|
ExecStart = "${pkgs.protonmail-bridge}/bin/protonmail-bridge --noninteractive";
|
|
Restart = "on-failure";
|
|
RestartSec = "5s";
|
|
};
|
|
Install = {
|
|
WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
};
|
|
}
|