small waybar change and adding protonmail-bridge
This commit is contained in:
31
modules/home/services/protonmail-bridge/default.nix
Normal file
31
modules/home/services/protonmail-bridge/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption optionalString;
|
||||
cfg = config.home.services.protonmail-bridge;
|
||||
in {
|
||||
options = {
|
||||
home.services.protonmail-bridge.enable = mkEnableOption "Enables protonmail-bridge";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
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 --noninteractive";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = ["default.target"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user