Discord: Difference between revisions

imported>Garbas
mNo edit summary
imported>Artturin
replace nix-env
Line 1: Line 1:
{{unfree}}
{{unfree}}


== Install ==
== Installation ==
available builds
<nowiki>
discord
discord-ptb
discord-canary</nowiki>
replace the <code>discord</code> below with whichever build you want
=== NixOS ===


To install discord directly in your environment without changing any configuration:
<syntaxhighlight lang="nix">
nixpkgs.config = {
  allowUnfree = true;
};
environment.systemPackages = with pkgs; [ discord ]
</syntaxhighlight>


Stable:
=== Home Manager ===
<syntaxhighlight lang="console">
Can be used on both NixOS and non-NixOS
$ nix-env -i discord --arg config '{ allowUnfree = true; }'
 
</syntaxhighlight>
Same as above but replace <code>environment.systemPackages</code> with <code>home.packages</code>


Testing:
=== Non-NixOS ===
<syntaxhighlight lang="console">
[https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management declarative package management on non-nixos]
$ nix-env -i discord-ptb --arg config '{ allowUnfree = true; }'
</syntaxhighlight>
Nightly:
<syntaxhighlight lang="console">
$ nix-env -i discord-canary --arg config '{ allowUnfree = true; }'
</syntaxhighlight>


== Usage ==
== Usage ==