2024-05-30 16:54:58 -03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2023-05-18 12:36:29 -03:00
|
|
|
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 = [
|
2024-05-30 16:54:58 -03:00
|
|
|
(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";
|
|
|
|
})
|
2024-02-07 12:45:30 -03:00
|
|
|
];
|
2023-05-18 12:36:29 -03:00
|
|
|
}
|