mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 16:20:42 +00:00
Add webcord
This commit is contained in:
parent
6bedfed95c
commit
6545dda7f8
4 changed files with 41 additions and 0 deletions
|
@ -2,5 +2,6 @@ _: {
|
|||
imports = [
|
||||
./spotify
|
||||
./vesktop
|
||||
./webcord
|
||||
];
|
||||
}
|
||||
|
|
34
home/programs/graphical/apps/webcord/default.nix
Normal file
34
home/programs/graphical/apps/webcord/default.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue