Files
nixos-config/nixos/modules/thunar.nix
T
2026-01-11 06:05:48 +03:00

37 lines
1.5 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{ config, pkgs, ... }: {
# Thunar (use the module)
programs.thunar.enable = true; # :contentReference[oaicite:1]{index=1}
# If you are NOT running full XFCE, you need xfconf or Thunar settings wont persist
programs.xfconf.enable = true; # :contentReference[oaicite:2]{index=2}
# Plugins (add them here, not in systemPackages)
programs.thunar.plugins = with pkgs.xfce; [
thunar-archive-plugin # right-click extract/compress
thunar-volman # removable media handling
]; # :contentReference[oaicite:3]{index=3}
# Mount/trash and thumbnails
services.gvfs.enable = true; # :contentReference[oaicite:4]{index=4}
services.tumbler.enable = true; # :contentReference[oaicite:5]{index=5}
# Removable drives typically rely on udisks2 + polkit
services.udisks2.enable = true; # :contentReference[oaicite:6]{index=6}
security.polkit.enable = true; # :contentReference[oaicite:7]{index=7}
# Usually already enabled, but harmless to be explicit on minimal installs
services.dbus.enable = true;
# Set default applications for Thunar (and others) via xdg-mime
environment.systemPackages = with pkgs; [
gdk-pixbuf # image thumbnailer :contentReference[oaicite:5]{index=5}
ffmpegthumbnailer # video thumbnails :contentReference[oaicite:6]{index=6}
ffmpeg-headless # decoding support often used alongside ffmpegthumbnailer :contentReference[oaicite:7]{index=7}
];
# Make .thumbnailer definitions visible under the system profile
environment.pathsToLink =
[ "share/thumbnailers" ]; # :contentReference[oaicite:8]{index=8}
}