Discord: Difference between revisions

imported>Scrumplex
m Move "Join the NixOS Discord" below Usage
imported>Hypnosis2839
Usage: change overlay to override, remove duplicate info
Line 25: Line 25:
[https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management declarative package management on non-nixos]
[https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management declarative package management on non-nixos]


== Usage ==
== Alternative packages ==
Command Line:


<syntaxhighlight lang="console">
=== BetterDiscord ===
$ Discord
</syntaxhighlight>
 
The nix expression also installs a desktop item as another option for starting the application.
 
=== Installing BetterDiscord ===
[https://betterdiscord.app BetterDiscord] is a client modification engine which allows you to use custom plugins, themes, and more. The easiest way to install this is using [https://github.com/bb010g/betterdiscordctl betterdiscordctl].
[https://betterdiscord.app BetterDiscord] is a client modification engine which allows you to use custom plugins, themes, and more. The easiest way to install this is using [https://github.com/bb010g/betterdiscordctl betterdiscordctl].
<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
Line 40: Line 33:
</syntaxhighlight>
</syntaxhighlight>


=== OpenAsar ===
=== OpenAsar / Vencord ===
 
It's possible to use an overlay to install [https://github.com/GooseMod/OpenAsar OpenAsar] with nixpkgs' Discord:
<syntaxhighlight lang="nix">
nixpkgs.overlays =
  let
    myOverlay = self: super: {
      discord = super.discord.override { withOpenASAR = true; };
    };
  in
  [ myOverlay ];
</syntaxhighlight>
 
=== Vencord ===
 
Similarly to installing OpenAsar, you can install [https://github.com/Vendicated/Vencord Vencord] using an overlay:
<syntaxhighlight lang="nix">
nixpkgs.overlays =
  let
    myOverlay = self: super: {
      discord = super.discord.override { withVencord = true; };
    };
  in
  [ myOverlay ];
</syntaxhighlight>
 
You can also combine both OpenAsar and Vencord like this:


You can use Discord [https://github.com/GooseMod/OpenAsar OpenAsar] and/or [https://github.com/Vendicated/Vencord Vencord] by replacing `pkgs.discord` in your config with the following override:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
nixpkgs.overlays =
(pkgs.discord.override {
  let
  # remove any overrides that you don't want
    myOverlay = self: super: {
  withOpenASAR = true;
      discord = super.discord.override { withOpenASAR = true; withVencord = true; };
  withVencord = true;
    };
})
  in
  [ myOverlay ];
</syntaxhighlight>
</syntaxhighlight>