34 lines
854 B
Nix
34 lines
854 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
options.my.shell.multimedia.enable = lib.mkEnableOption "multimedia CLI tools and codecs";
|
|
config = lib.mkIf config.my.shell.multimedia.enable {
|
|
home-manager.users.jawz.programs = {
|
|
yt-dlp = {
|
|
enable = true;
|
|
settings = {
|
|
embed-thumbnail = true;
|
|
embed-subs = true;
|
|
sub-langs = "all";
|
|
cookies-from-browser = "firefox+gnomekeyring:/home/jawz/.librewolf/jawz";
|
|
};
|
|
};
|
|
gallery-dl = {
|
|
enable = true;
|
|
settings = import ../../dotfiles/gallery-dl.nix;
|
|
};
|
|
};
|
|
users.users.jawz.packages = builtins.attrValues {
|
|
inherit (pkgs)
|
|
ffmpeg # not ffmpreg, the coolest video conversion tool!
|
|
imagemagick # photoshop what??
|
|
ffpb # make ffmpeg encoding... a bit fun
|
|
;
|
|
};
|
|
};
|
|
}
|