Thumbnails: Difference between revisions
thumbnailer is already included in package |
|||
Line 55: | Line 55: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
# configuration.nix | # configuration.nix | ||
{ pkgs, ... }: { | { pkgs, ... }: | ||
{ | |||
# Install ffmpegthumbnailer package | |||
environment.systemPackages = [ | environment.systemPackages = [ | ||
pkgs.ffmpegthumbnailer | pkgs.ffmpegthumbnailer | ||
]; | ]; | ||
# Installing above package automatically creates the ffmpegthumbnailer.thumbnailer | |||
# in '/run/current-system/sw/share/thumbnailers' but thumbnails are not displayed | |||
# until symlinks to 'share/thumbnailers' are defined | |||
environment.pathsToLink = [ | |||
"share/thumbnailers" | |||
]; | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |