blob: 50e4aa7c61f1b5140d87555a9a8b221efba4edd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ pkgs, lib, config, ... }: let
cfg = config._archetypes.collections.desktop.thumbnailers;
in {
options._archetypes.collections.desktop.thumbnailers = {
enable = lib.mkEnableOption "install thumbnailers for graphical file managers";
};
config = lib.mkIf cfg.enable {
# https://wiki.nixos.org/wiki/Thumbnails
# Thumbnailers created in /run/current-system/sw/share/thumbnailers
environment.systemPackages = with pkgs; [
# Video
ffmpegthumbnailer
# Images
gdk-pixbuf
# HEIF images
libheif
libheif.out
# RAW images
nufraw-thumbnailer
];
};
}
|