2024-06-20 13:37:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
osConfig,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib) mkIf;
|
|
|
|
|
2024-06-21 09:41:29 +00:00
|
|
|
cfg = osConfig.myOptions.home-manager.programs.applications.vesktop;
|
2024-06-20 13:37:46 +00:00
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [ vesktop ];
|
|
|
|
|
|
|
|
systemd.user.services."vesktop" = mkIf cfg.autoStart {
|
|
|
|
Unit = {
|
|
|
|
Description = "Vesktop (An alternate client for Discord with Vencord built-in)";
|
|
|
|
After = [ "graphical-session.target" ];
|
|
|
|
PartOf = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
Service = {
|
|
|
|
Type = "simple";
|
|
|
|
Restart = "on-failure";
|
|
|
|
ExecStart = "${pkgs.vesktop}/bin/vesktop";
|
|
|
|
};
|
|
|
|
|
|
|
|
Install.WantedBy = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|