summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
Diffstat (limited to 'user-profiles')
-rw-r--r--user-profiles/mpv/default.nix3
-rw-r--r--user-profiles/tmux/default.nix4
-rw-r--r--user-profiles/utils.nix2
-rw-r--r--user-profiles/yt-dlp.nix18
4 files changed, 20 insertions, 7 deletions
diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix
index 94f241c8..8cf330e8 100644
--- a/user-profiles/mpv/default.nix
+++ b/user-profiles/mpv/default.nix
@@ -105,7 +105,8 @@
105 }; 105 };
106 config = { 106 config = {
107 ytdl = true; 107 ytdl = true;
108 ytdl-raw-options = "sub-langs=\"${config.programs.yt-dlp.settings.sub-langs}\""; 108 ytdl-format = "ytdl";
109 # ytdl-raw-options = "sub-langs=\"${config.programs.yt-dlp.settings.sub-langs}\"";
109 subs-with-matching-audio = false; 110 subs-with-matching-audio = false;
110 audio-display = false; 111 audio-display = false;
111 osd-font = "Fira Sans"; 112 osd-font = "Fira Sans";
diff --git a/user-profiles/tmux/default.nix b/user-profiles/tmux/default.nix
index dc4e791f..7ea0c0d5 100644
--- a/user-profiles/tmux/default.nix
+++ b/user-profiles/tmux/default.nix
@@ -16,8 +16,8 @@
16 16
17 installPhase = '' 17 installPhase = ''
18 substitute $src $out \ 18 substitute $src $out \
19 --subst-var-by zsh ${config.programs.zsh.package} \ 19 --subst-var-by zsh ${lib.getExe config.programs.zsh.package} \
20 --subst-var-by man ${config.programs.man.package} 20 --subst-var-by man ${lib.getExe config.programs.man.package}
21 ''; 21 '';
22 }); 22 });
23 }; 23 };
diff --git a/user-profiles/utils.nix b/user-profiles/utils.nix
index da79e336..edf6da11 100644
--- a/user-profiles/utils.nix
+++ b/user-profiles/utils.nix
@@ -46,6 +46,8 @@ in {
46 lesspipe.enable = true; 46 lesspipe.enable = true;
47 47
48 man.enable = true; 48 man.enable = true;
49
50 vim.enable = true;
49 }; 51 };
50 52
51 home.sessionVariables = { 53 home.sessionVariables = {
diff --git a/user-profiles/yt-dlp.nix b/user-profiles/yt-dlp.nix
index ef0be87e..eefa673f 100644
--- a/user-profiles/yt-dlp.nix
+++ b/user-profiles/yt-dlp.nix
@@ -7,17 +7,26 @@
7 cookies-from-browser = "firefox::none"; 7 cookies-from-browser = "firefox::none";
8 mark-watched = true; 8 mark-watched = true;
9 format = lib.concatStringsSep "/" [ 9 format = lib.concatStringsSep "/" [
10 "bestvideo*[width<=2560][height<=1440][fps<=60][vcodec!*=av01][width>=1920]+bestaudio"
11 "best[width<=2560][height<=1440][fps<=60][vcodec!*=av01][width>=1920]"
12 "bestvideo*[vcodec!*=av01][width>=1920]+bestaudio"
13 "best[vcodec!*=av01][width>=1920]"
14 "bestvideo*[width<=2560][height<=1440][fps<=60][vcodec!*=av01][height>=1080]+bestaudio"
15 "best[width<=2560][height<=1440][fps<=60][vcodec!*=av01][height>=1080]"
16 "bestvideo*[vcodec!*=av01][height>=1080]+bestaudio"
17 "best[vcodec!*=av01][height>=1080]"
10 "bestvideo*[width<=2560][height<=1440][fps<=60]+bestaudio" 18 "bestvideo*[width<=2560][height<=1440][fps<=60]+bestaudio"
11 "best[width<=2560][height<=1440][fps<=60]" 19 "best[width<=2560][height<=1440][fps<=60]"
12 "bestvideo*+bestaudio" 20 "bestvideo*+bestaudio"
13 "best" 21 "best"
14 ]; 22 ];
15 embed-subs = true; 23 # embed-subs = true;
24 embed-thumbnail = true;
25 embed-metadata = true;
16 # write-subs = true; 26 # write-subs = true;
17 write-auto-subs = true; 27 # write-auto-subs = true;
18 sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; 28 # sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat";
19 prefer-free-formats = true; 29 prefer-free-formats = true;
20 embed-metadata = true;
21 # downloader = "${pkgs.axel}/bin/axel"; 30 # downloader = "${pkgs.axel}/bin/axel";
22 concurrent-fragments = 12; 31 concurrent-fragments = 12;
23 buffer-size = "16K"; 32 buffer-size = "16K";
@@ -29,6 +38,7 @@
29 # ]; 38 # ];
30 remux-video = "mp4>mkv"; 39 remux-video = "mp4>mkv";
31 output = lib.mkDefault "\"%(modified_date>%Y%m%d,release_date>%Y%m%d,upload_date>%Y%m%d)s %(title)s [%(uploader)s %(webpage_url)s].%(ext)s\""; 40 output = lib.mkDefault "\"%(modified_date>%Y%m%d,release_date>%Y%m%d,upload_date>%Y%m%d)s %(title)s [%(uploader)s %(webpage_url)s].%(ext)s\"";
41 audio-multistreams = true;
32 }; 42 };
33 }; 43 };
34 }; 44 };