yt-dlp: migrate from plain package to home-manager module

This commit is contained in:
Trolli Schmittlauch 2025-11-07 12:21:07 +01:00
parent 52e00bbadd
commit e759503e77
3 changed files with 10 additions and 2 deletions

View file

@ -170,6 +170,15 @@
EDITOR = "nvim"; EDITOR = "nvim";
}; };
programs.yt-dlp = {
enable = true;
settings = {
embed-thumbnail = true;
embed-subs = true;
sub-langs = "all";
};
};
home.activation.reportChanges = config.lib.dag.entryAnywhere '' home.activation.reportChanges = config.lib.dag.entryAnywhere ''
if [[ -v oldGenPath ]]; then if [[ -v oldGenPath ]]; then
run nix store diff-closures $oldGenPath $newGenPath run nix store diff-closures $oldGenPath $newGenPath

View file

@ -33,7 +33,6 @@ let
multimediaApps = [ multimediaApps = [
mpv mpv
yt-dlp
] ]
++ lib.optionals pkgs.stdenv.isDarwin [ vlc-bin ] ++ lib.optionals pkgs.stdenv.isDarwin [ vlc-bin ]
++ lib.optionals pkgs.stdenv.isLinux [ ++ lib.optionals pkgs.stdenv.isLinux [