Thunar: Difference between revisions

From NixOS Wiki
imported>SuperSamus
Adapted after https://github.com/NixOS/nixpkgs/pull/179108
imported>Voidless
No edit summary
Line 8: Line 8:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
programs.thunar.enable = true;
environment.systemPackages = with pkgs; [ xfce.thunar ];
</syntaxhighlight>
</syntaxhighlight>


Line 16: Line 16:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
programs.thunar.plugins = with pkgs.xfce; [ thunar-archive-plugin thunar-volman ];
services.xserver.desktopManager.xfce.thunarPlugin = with pkgs.xfce; [
  thunar-archive-plugin
  thunar-volman
];
</syntaxhighlight>
</syntaxhighlight>



Revision as of 14:29, 11 August 2022

Thunar is a GTK file manager originally made for Xfce.

Installation

Thunar will automatically be installed by enabling Xfce.

If you want to install Thunar standalone, add to your configuration.nix:

environment.systemPackages = with pkgs; [ xfce.thunar ];

Plugins

You can add plugins by including them in programs.thunar.plugins to your configuration.nix. For example:

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

Other functionalities

You can extend Thunar's functionalities by adding to your configuration.nix:

services.gvfs.enable = true; # Mount, trash, and other functionalities
services.tumbler.enable = true; # Thumbnail support for images

You can extend Tumbler's support 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