mirror of
https://github.com/morten-olsen/nixos-config.git
synced 2026-02-08 00:36:27 +01:00
22 lines
533 B
Nix
22 lines
533 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
home.packages = [ pkgs.protonmail-bridge ];
|
|
systemd.user.services.protonmail-bridge = {
|
|
Unit = {
|
|
Description = "Protonmail Bridge";
|
|
After = [ "network.target" ];
|
|
};
|
|
|
|
Service = {
|
|
Restart = "always";
|
|
ExecStart = "${pkgs.protonmail-bridge}/bin/protonmail-bridge --no-window --log-level ${cfg.logLevel}" + optionalString (cfg.nonInteractive) " --noninteractive";
|
|
};
|
|
|
|
Install = {
|
|
WantedBy = [ "default.target" ];
|
|
};
|
|
};
|
|
};
|
|
}
|