Slack: Difference between revisions

From NixOS Wiki
imported>Truthadjustr
Created page with "'''How to Install the Slack chat client''' To install the chat client, do: nix-env -iA nixos.slack To launch or run the chat client, do slack And remember, because this i..."
 
Klinger (talk | contribs)
m Category:Applications
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''How to Install the Slack chat client'''
[https://slack.com/ Slack] is a communication platform with a desktop application based on Electron.


To install the chat client, do:
== Installation ==


nix-env -iA nixos.slack
=== NixOS ===


To launch or run the chat client, do
<syntaxHighlight lang="nix">
environment.systemPackages = with pkgs; [ slack ];
</syntaxHighlight>


slack
== Tips ==


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.
=== 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>
 
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
    ];
    gtkUsePortal = true;
  };
};
</syntaxHighlight>
 
==== Window decorations ====
 
If the above configuration leaves you without window decorations you may want to enable this feature as well:
<syntaxHighlight lang="console">
WaylandWindowDecorations
</syntaxHighlight>
 
 
[[Category:Applications]]

Latest revision as of 12:53, 19 April 2024

Slack is a communication platform with a desktop application based on Electron.

Installation

NixOS

environment.systemPackages = with pkgs; [ slack ];

Tips

Wayland

You can enable native Wayland support by launching Slack as:

$ NIXOS_OZONE_WL=1 slack

... or by simply specifying this option globally:

environment.sessionVariables.NIXOS_OZONE_WL = "1";

If you want to use screen-sharing, you'll have to enable xdg-desktop-portal, too:

xdg = {
  portal = {
    enable = true;
    extraPortals = with pkgs; [
      xdg-desktop-portal-wlr
      xdg-desktop-portal-gtk
    ];
    gtkUsePortal = true;
  };
};

Window decorations

If the above configuration leaves you without window decorations you may want to enable this feature as well:

WaylandWindowDecorations