From 6ff5bf4c1148c08937c31546a50ad5290a5f7e2e Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sat, 22 Apr 2023 23:50:11 -0400 Subject: [PATCH] feat(global): add yt-dlp and aliases --- modules/global/packages.nix | 1 + modules/global/shell.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/modules/global/packages.nix b/modules/global/packages.nix index a5224b5..f9603bc 100644 --- a/modules/global/packages.nix +++ b/modules/global/packages.nix @@ -54,6 +54,7 @@ whois xxHash yq + yt-dlp zip ]; } diff --git a/modules/global/shell.nix b/modules/global/shell.nix index b0d8da5..40ed103 100644 --- a/modules/global/shell.nix +++ b/modules/global/shell.nix @@ -78,5 +78,9 @@ in path = "tr ':' '\n' <<< \"$PATH\""; timestamp = "date +%s -d"; + + # yt-dlp + yt-m4a = ''yt-dlp -f "bestaudio[ext=m4a]" -o "%(title)s.%(ext)s"''; + yt-mp4 = ''yt-dlp -f "best[ext=mp4]" -o "%(title)s.%(ext)s"''; }; }