mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-08 01:07:23 +08:00
Start protonmail-bridge as a systemd service
This commit is contained in:
parent
ced6fb09bb
commit
31aa09f918
1 changed files with 13 additions and 0 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue