aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hm/sils/yt-dlp.nix
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-12-18 18:20:50 +0100
committerSilas Schöffel <sils@sils.li>2024-12-18 18:20:50 +0100
commit5453ffd5e9f3ff78e5347e4912d50ab151e259d1 (patch)
treeae56c82ad19ae57b0e46ba0ff3a4866d4ca4baef /modules/hm/sils/yt-dlp.nix
parentnheko: remove (diff)
downloadnix-config-5453ffd5e9f3ff78e5347e4912d50ab151e259d1.zip
replace youtube-dl with yt-dlp
Diffstat (limited to '')
-rw-r--r--modules/hm/sils/yt-dlp.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/hm/sils/yt-dlp.nix b/modules/hm/sils/yt-dlp.nix
new file mode 100644
index 0000000..6b3d66c
--- /dev/null
+++ b/modules/hm/sils/yt-dlp.nix
@@ -0,0 +1,12 @@
+{
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.sils.yt-dlp;
+in {
+ options.sils.yt-dlp.enable = lib.mkEnableOption "yt-dlp";
+ config = lib.mkIf cfg.enable {
+ programs.yt-dlp.enable = true;
+ };
+}