Slack: Difference between revisions

imported>Mic92
No edit summary
m Removed xdg.portal.gtkUsePortal option due to it no longer having any effect. (The feature was removed due to being unsupported and discouraged by GTK devs)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''How to Install the Slack chat client'''
{{tip/unfree}}


To install the chat client, do:
[https://slack.com/ Slack] is a communication platform with a desktop application based on Electron.


<syntaxHighlight lang=console>
== Installation ==
$ nix-env -iA nixos.slack
 
=== NixOS ===
<syntaxHighlight lang="nix">
environment.systemPackages = with pkgs; [ slack ];
</syntaxHighlight>
 
== Tips ==
 
=== Wayland ===
 
You can enable native Wayland support by launching Slack as:
 
<syntaxHighlight lang="console">
$ NIXOS_OZONE_WL=1 slack
</syntaxHighlight>
 
... or by simply specifying this option globally:
 
<syntaxHighlight lang="nix">
environment.sessionVariables.NIXOS_OZONE_WL = "1";
</syntaxHighlight>
</syntaxHighlight>


To launch or run the chat client, do
If you want to use screen-sharing, you'll have to enable <code>xdg-desktop-portal</code>, too:
 
<syntaxhighlight lang="nix">
xdg = {
  portal = {
    enable = true;
    extraPortals = with pkgs; [
      xdg-desktop-portal-wlr
      xdg-desktop-portal-gtk
    ];
  };
};
</syntaxhighlight>


<syntaxHighlight lang=console>
==== Window decorations ====
$ slack
 
If the above configuration leaves you without window decorations you may want to enable this feature as well:
<syntaxHighlight lang="console">
WaylandWindowDecorations
</syntaxHighlight>
</syntaxHighlight>


And remember, because this is Nixos, you don't have to be root to install things. The above steps will install the Slack chat client as a non-root user.
 
[[Category:Applications]]