diff --git a/system/thunar.nix b/system/thunar.nix index e3af8e7..5a14448 100644 --- a/system/thunar.nix +++ b/system/thunar.nix @@ -10,4 +10,19 @@ services.gvfs.enable = true; # Thumbnail support for images services.tumbler.enable = true; + + 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"; + } + ) + ]; }