nixos-config/system/media-packages.nix

43 lines
813 B
Nix
Raw Permalink Normal View History

{
config,
pkgs,
lib,
...
}:
let
cfg = config.packages.media-packages;
in
{
2022-10-22 00:03:18 -03:00
options.packages.media-packages = {
2022-10-22 23:54:14 -03:00
enable = lib.mkEnableOption "media packages";
2022-10-22 00:03:18 -03:00
};
2022-10-22 23:54:14 -03:00
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
2022-10-22 00:03:18 -03:00
yt-dlp
ffmpeg
2023-05-20 12:41:31 -03:00
obs-studio
2022-10-22 00:03:18 -03:00
imagemagick
2023-07-27 01:20:31 -03:00
helvum
2022-10-22 00:03:18 -03:00
gimp
inkscape
2024-01-20 21:10:51 -03:00
krita
2024-07-06 18:41:32 -03:00
kdePackages.breeze
2024-03-20 16:11:45 -03:00
kdePackages.kdenlive
blender-hip
2022-10-22 00:03:18 -03:00
libreoffice
2023-08-03 21:57:09 -03:00
godot_4
2024-08-30 18:29:12 -03:00
(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";
})
2022-10-22 23:54:14 -03:00
];
2022-10-22 00:03:18 -03:00
};
}