summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
Diffstat (limited to 'user-profiles')
-rw-r--r--user-profiles/mpv/default.nix6
-rw-r--r--user-profiles/yt-dlp.nix17
2 files changed, 21 insertions, 2 deletions
diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix
index 642eb004..f8454508 100644
--- a/user-profiles/mpv/default.nix
+++ b/user-profiles/mpv/default.nix
@@ -8,8 +8,10 @@
8 config = { 8 config = {
9 ytdl = true; 9 ytdl = true;
10 ytdl-format = lib.concatStringsSep "/" [ 10 ytdl-format = lib.concatStringsSep "/" [
11 "bestvideo[width<=2560][height<=1440][fps<=60][protocol!=http_dash_segments]+bestaudio[protocol!=http_dash_segments]" 11 "bestvideo[width<=1920][height<=1080][fps<=60][protocol!=http_dash_segments]+bestaudio[protocol!=http_dash_segments]"
12 "best[width<=2560][height<=1440][fps<=60][protocol!=http_dash_segments]" 12 "best[width<=1920][height<=1080][fps<=60][protocol!=http_dash_segments]"
13 # "bestvideo[width<=2560][height<=1440][fps<=60][protocol!=http_dash_segments]+bestaudio[protocol!=http_dash_segments]"
14 # "best[width<=2560][height<=1440][fps<=60][protocol!=http_dash_segments]"
13 "best[protocol!=http_dash_segments]" 15 "best[protocol!=http_dash_segments]"
14 ]; 16 ];
15 ytdl-raw-options = lib.concatStringsSep "," [ 17 ytdl-raw-options = lib.concatStringsSep "," [
diff --git a/user-profiles/yt-dlp.nix b/user-profiles/yt-dlp.nix
new file mode 100644
index 00000000..946fd8d0
--- /dev/null
+++ b/user-profiles/yt-dlp.nix
@@ -0,0 +1,17 @@
1{ config, lib, userName, pkgs, ... }:
2{
3 home-manager.users.${userName} = {
4 home.packages = with pkgs; [ yt-dlp ];
5 xdg.configFile."yt-dlp/config".text = ''
6 --netrc
7 --mark-watched
8 --format ${lib.concatStringsSep "/" [
9 "bestvideo[width<=1920][height<=1080][fps<=60][protocol!=http_dash_segments]+bestaudio[protocol!=http_dash_segments]"
10 "best[width<=1920][height<=1080][fps<=60][protocol!=http_dash_segments]"
11 # "bestvideo[width<=2560][height<=1440][fps<=60][protocol!=http_dash_segments]+bestaudio[protocol!=http_dash_segments]"
12 # "best[width<=2560][height<=1440][fps<=60][protocol!=http_dash_segments]"
13 "best[protocol!=http_dash_segments]"
14 ]}
15 '';
16 };
17}