mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 13:19:09 +02:00
29 lines
687 B
Nix
29 lines
687 B
Nix
{ lib, config, pkgs, ... }:
|
|
{
|
|
options.swarselmodules.firezone-tray = lib.mkEnableOption "enable firezone applet for tray";
|
|
config = lib.mkIf config.swarselmodules.firezone-tray {
|
|
|
|
systemd.user.services.firezone-applet = {
|
|
Unit = {
|
|
Description = "Firezone applet";
|
|
Requires = [
|
|
"tray.target"
|
|
];
|
|
After = [
|
|
"graphical-session.target"
|
|
"tray.target"
|
|
];
|
|
PartOf = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Install = {
|
|
WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Service = {
|
|
ExecStart = "${pkgs.firezone-gui-client}/bin/firezone-client-gui";
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|