Add webcord

This commit is contained in:
ItsDrike 2024-06-23 20:17:08 +02:00
parent 6bedfed95c
commit 6545dda7f8
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
4 changed files with 41 additions and 0 deletions

View file

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

View file

@ -0,0 +1,34 @@
{
lib,
osConfig,
pkgs,
...
}: let
inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.applications.webcord;
in {
config = mkIf cfg.enable {
home.packages = with pkgs; [
# Webcord with vencord extension installed
webcord-vencord
];
systemd.user.services."webcord" = mkIf cfg.autoStart {
Unit = {
Description = "Webcord (An electron-based Discord client implemented without Discord API with Vencord built-in)";
After = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
Restart = "on-failure";
ExecStart = "${pkgs.webcord-vencord}/bin/webcord";
};
Install.WantedBy = [ "graphical-session.target" ];
};
};
}