thumbnailers

This commit is contained in:
Danilo Reyes 2025-05-10 12:18:05 -06:00
parent f0e2421262
commit 2089bbee90
2 changed files with 26 additions and 2 deletions

View File

@ -30,6 +30,7 @@
gnome-tour gnome-tour
yelp yelp
gnome-music gnome-music
totem
; ;
}; };
qt.enable = true; qt.enable = true;

View File

@ -102,8 +102,31 @@
}; };
}; };
}; };
environment.etc = { environment = {
"wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = '' pathsToLink = [ "share/thumbnailers" ];
systemPackages =
builtins.attrValues {
# thumbnail for heif files & videos
inherit (pkgs)
libheif
ffmpegthumbnailer
bign-handheld-thumbnailer
gnome-epub-thumbnailer
;
inherit (pkgs.libheif) out;
}
++ [
(pkgs.writeTextFile {
name = "krita-thumbnailer";
destination = "/share/thumbnailers/kra.thumbnailer";
text = ''
[Thumbnailer Entry]
Exec=sh -c "${pkgs.unzip}/bin/unzip -p %i preview.png > %o"
MimeType=application/x-krita;
'';
})
];
etc."wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
bluez_monitor.properties = { bluez_monitor.properties = {
["bluez5.enable-sbc-xq"] = true, ["bluez5.enable-sbc-xq"] = true,
["bluez5.enable-msbc"] = true, ["bluez5.enable-msbc"] = true,