mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-30 01:24:57 +08:00
17 lines
550 B
Nix
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";
|
|
};
|
|
};
|
|
}
|