Add vesktop

This commit is contained in:
ItsDrike 2024-06-20 15:37:46 +02:00
parent f726805e5c
commit 8f4f9a7bd9
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
4 changed files with 40 additions and 0 deletions

View file

@ -1,5 +1,6 @@
_: {
imports = [
./spotify
./vesktop
];
}

View file

@ -0,0 +1,30 @@
{
lib,
osConfig,
pkgs,
...
}: let
inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.vesktop;
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" ];
};
};
}