ctucx.git: nixfiles

ctucx' nixfiles

commit 0332cfb7c8bd47e4e56d34dbbcf6e0b3174e4237
parent 1b7ba804c344cfe7c2136403db47738b57414f4a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 7 May 2022 13:52:15 +0200

programs/cli/utilities: better alias for yt-dlp -> youtube-dl
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/configurations/programs/cli/bash.nix b/configurations/programs/cli/bash.nix
@@ -37,8 +37,6 @@
 
           use          = "nix-shell -p ";
 
-          youtube-dl   = "yt-dlp";
-
           zzz          = (
             if pkgs.stdenv.isLinux then
               "sleep 1 && systemctl suspend"
diff --git a/configurations/programs/cli/utilities.nix b/configurations/programs/cli/utilities.nix
@@ -12,6 +12,9 @@ in {
         rsync
 
         yt-dlp
+        (pkgs.writeShellScriptBin "youtube-dl" ''
+          exec ${pkgs.yt-dlp}/bin/yt-dlp --compat-options youtube-dl "$@"
+       '')
 
         exa
         bat