diff options
author | Silas Schöffel <sils@sils.li> | 2024-12-18 18:20:50 +0100 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-12-18 18:20:50 +0100 |
commit | 5453ffd5e9f3ff78e5347e4912d50ab151e259d1 (patch) | |
tree | ae56c82ad19ae57b0e46ba0ff3a4866d4ca4baef | |
parent | nheko: remove (diff) | |
download | nix-config-5453ffd5e9f3ff78e5347e4912d50ab151e259d1.tar.gz nix-config-5453ffd5e9f3ff78e5347e4912d50ab151e259d1.zip |
replace youtube-dl with yt-dlp
-rw-r--r-- | hm/packages/default.nix | 1 | ||||
-rw-r--r-- | hm/silas/default.nix | 1 | ||||
-rw-r--r-- | hm/sils/default.nix | 1 | ||||
-rw-r--r-- | modules/hm/sils/default.nix | 1 | ||||
-rw-r--r-- | modules/hm/sils/yt-dlp.nix | 12 |
5 files changed, 15 insertions, 1 deletions
diff --git a/hm/packages/default.nix b/hm/packages/default.nix index 9982b66..e5f37a5 100644 --- a/hm/packages/default.nix +++ b/hm/packages/default.nix @@ -97,7 +97,6 @@ in { sayonara # audioplayer vlc # audio and video mpv # videos - youtube-dl # download videos pulseaudio # audio control imv # image viewing cli diff --git a/hm/silas/default.nix b/hm/silas/default.nix index cf6671b..5b0881d 100644 --- a/hm/silas/default.nix +++ b/hm/silas/default.nix @@ -37,6 +37,7 @@ kdeconnect.enable = true; mail.enable = true; sway.enable = true; + yt-dlp.enable = true; zathura.enable = true; }; programs.home-manager.enable = true; diff --git a/hm/sils/default.nix b/hm/sils/default.nix index 8f0bb6b..26c51d0 100644 --- a/hm/sils/default.nix +++ b/hm/sils/default.nix @@ -37,6 +37,7 @@ kdeconnect.enable = true; mail.enable = true; sway.enable = true; + yt-dlp.enable = true; zathura.enable = true; }; programs.home-manager.enable = true; 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; + }; +} |