nixos-config/system/thunar.nix

33 lines
654 B
Nix
Raw Normal View History

{
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 = [
(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
}