Jump to content

Slack: Difference between revisions

From NixOS Wiki
DoggoBit (talk | contribs)
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)
 
Line 28: Line 28:
If you want to use screen-sharing, you'll have to enable <code>xdg-desktop-portal</code>, too:
If you want to use screen-sharing, you'll have to enable <code>xdg-desktop-portal</code>, too:


<syntaxHighlight lang="nix">
<syntaxhighlight lang="nix">
xdg = {
xdg = {
   portal = {
   portal = {
Line 36: Line 36:
       xdg-desktop-portal-gtk
       xdg-desktop-portal-gtk
     ];
     ];
    gtkUsePortal = true;
   };
   };
};
};
</syntaxHighlight>
</syntaxhighlight>


==== Window decorations ====
==== Window decorations ====

Latest revision as of 00:39, 15 June 2025

🟆︎
Tip: This package is unfree, and will require extra steps to install. You can read more about allowing unfree software in the Nixpkgs Manual.

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
    ];
  };
};

Window decorations

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

WaylandWindowDecorations