nixos-config/system/thunar.nix

29 lines
676 B
Nix
Raw Normal View History

2023-05-18 12:36:29 -03:00
{ config, pkgs, inputs, ... }: {
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
# Mount, trash, and other functionalities
services.gvfs.enable = true;
# Thumbnail support for images
services.tumbler.enable = true;
2024-02-07 12:45:30 -03:00
environment.systemPackages = [
(
pkgs.writeTextFile {
name = "thumbs";
text = ''
[Thumbnailer Entry]
TryExec=unzip
Exec=sh -c "${pkgs.unzip}/bin/unzip -p %i preview.png > %o"
MimeType=application/x-krita;
'';
destination = "/share/thumbnailers/kra.thumbnailer";
}
)
];
2023-05-18 12:36:29 -03:00
}