From 5453ffd5e9f3ff78e5347e4912d50ab151e259d1 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Wed, 18 Dec 2024 18:20:50 +0100 Subject: replace youtube-dl with yt-dlp --- modules/hm/sils/default.nix | 1 + modules/hm/sils/yt-dlp.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 modules/hm/sils/yt-dlp.nix (limited to 'modules/hm') diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix index 6a2b43c..1cad7bc 100644 --- a/modules/hm/sils/default.nix +++ b/modules/hm/sils/default.nix @@ -11,6 +11,7 @@ ./kdeconnect.nix ./mail.nix ./sway.nix + ./yt-dlp.nix ./zathura.nix ]; } 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; + }; +} -- cgit 1.4.1