chore[work]: make app startup consistent

This commit is contained in:
Leon Schwarzäugl 2025-10-07 19:31:48 +02:00
parent 057e8959a0
commit edf45b7be5
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
11 changed files with 418 additions and 46 deletions

View file

@ -0,0 +1,27 @@
{ lib, config, pkgs, ... }:
{
options.swarselmodules.element-tray = lib.mkEnableOption "enable element applet for tray";
config = lib.mkIf config.swarselmodules.element-tray {
systemd.user.services.element-applet = {
Unit = {
Description = "Element applet";
Requires = [ "tray.target" ];
After = [
"graphical-session.target"
"tray.target"
];
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.element-desktop}/bin/element-desktop --hidden --enable-features=useozoneplatform --ozone-platform=wayland --disable-gpu-driver-bug-workarounds";
};
};
};
}