nixos-config/system/media-packages.nix
2024-08-30 18:29:12 -03:00

43 lines
813 B
Nix

{
config,
pkgs,
lib,
...
}:
let
cfg = config.packages.media-packages;
in
{
options.packages.media-packages = {
enable = lib.mkEnableOption "media packages";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
yt-dlp
ffmpeg
obs-studio
imagemagick
helvum
gimp
inkscape
krita
kdePackages.breeze
kdePackages.kdenlive
blender-hip
libreoffice
godot_4
(pkgs.writeTextFile {
name = "krita-thumbnails";
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";
})
];
};
}