Thunar

From NixOS Wiki
Revision as of 23:15, 9 November 2021 by SuperSamus (talk | contribs) (Revamped the article)
Jump to: navigation, search

Thunar is a GTK file manager originally made for Xfce.

Installation

With Xfce

If you enabled Xfce, Thunar should already be installed.

You can add plugins with services.xserver.desktopManager.xfce.thunarPlugins in your /etc/nixos/configuration.nix, for example:

services.xserver.desktopManager.xfce.thunarPlugins = with pkgs; [ xfce.thunar-volman xfce.thunar-archive-plugin ];

Standalone

If instead you want to install Thunar standalone, add to your /etc/nixos/configuration.nix:

environment.systemPackages = with pkgs; [
  xfce.thunar
  # Optionals
  xfce.xfconf # Needed to save the preferences
  xfce.exo # Used by default for `open terminal here`, but can be changed 
];
services.gvfs.enable = true; # Mount, trash, and other functionalities
services.tumbler.enable = true; # Thumbnail support for images

You can add plugins by overriding thunarPlugins. For example, replace xfce.thunar from above with:

(xfce.thunar.override { thunarPlugins = with pkgs; [ xfce.thunar-volman xfce.thunar-archive-plugin ]; })

Thumbnails

You can extend tumbler's functionality to other file formats by adding more packages to environment.systemPackages. See here for a list (the names may not match 1:1).

See also