mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 05:24:34 +00:00
Add webcord
This commit is contained in:
parent
6bedfed95c
commit
6545dda7f8
|
@ -2,5 +2,6 @@ _: {
|
||||||
imports = [
|
imports = [
|
||||||
./spotify
|
./spotify
|
||||||
./vesktop
|
./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" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
# Applications
|
# Applications
|
||||||
".config/spotify"
|
".config/spotify"
|
||||||
".config/vesktop"
|
".config/vesktop"
|
||||||
|
".config/WebCord"
|
||||||
".local/share/Smart Code ltd/Stremio"
|
".local/share/Smart Code ltd/Stremio"
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
|
@ -178,6 +179,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
};
|
};
|
||||||
|
webcord.enable = true;
|
||||||
mpv.enable = true;
|
mpv.enable = true;
|
||||||
nomacs.enable = true; # TODO: probably disable
|
nomacs.enable = true; # TODO: probably disable
|
||||||
qimgv.enable = true;
|
qimgv.enable = true;
|
||||||
|
|
|
@ -33,6 +33,10 @@ in
|
||||||
enable = mkEnableOption "Vesktop (An alternate client for Discord with Vencord built-in)";
|
enable = mkEnableOption "Vesktop (An alternate client for Discord with Vencord built-in)";
|
||||||
autoStart = mkEnableOption "Auto-Start for Vesktop";
|
autoStart = mkEnableOption "Auto-Start for Vesktop";
|
||||||
};
|
};
|
||||||
|
webcord = {
|
||||||
|
enable = mkEnableOption "Webcord (An electron-based Discord client implemented without Discord API with Vencord built-in)";
|
||||||
|
autoStart = mkEnableOption "Auto-Start for Webcord";
|
||||||
|
};
|
||||||
nomacs.enable = mkEnableOption "Nomacs (Qt-based image viewer)";
|
nomacs.enable = mkEnableOption "Nomacs (Qt-based image viewer)";
|
||||||
qimgv.enable = mkEnableOption "QImgV (Qt-based image viewer with video support)";
|
qimgv.enable = mkEnableOption "QImgV (Qt-based image viewer with video support)";
|
||||||
qbittorrent.enable = mkEnableOption "Qbittorrent (Free software BitTorrent client)";
|
qbittorrent.enable = mkEnableOption "Qbittorrent (Free software BitTorrent client)";
|
||||||
|
|
Loading…
Reference in a new issue