diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-10-24 14:16:14 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-10-24 14:16:14 +0200 |
commit | 52afe4037557d7100f4edaf0e5273ee36601e085 (patch) | |
tree | 0149bd328e38231394da3f3bdc9fc5082da3286c /user-profiles/mpv | |
parent | 41e0950db253bed0bdf6fb9e2f9cc72c355c0e36 (diff) | |
download | nixos-52afe4037557d7100f4edaf0e5273ee36601e085.tar nixos-52afe4037557d7100f4edaf0e5273ee36601e085.tar.gz nixos-52afe4037557d7100f4edaf0e5273ee36601e085.tar.bz2 nixos-52afe4037557d7100f4edaf0e5273ee36601e085.tar.xz nixos-52afe4037557d7100f4edaf0e5273ee36601e085.zip |
mpv: ...
Diffstat (limited to 'user-profiles/mpv')
-rw-r--r-- | user-profiles/mpv/default.nix | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix index 6b0ea076..0235d615 100644 --- a/user-profiles/mpv/default.nix +++ b/user-profiles/mpv/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { config, userName, pkgs, ... }: | 1 | { config, lib, userName, pkgs, ... }: |
2 | { | 2 | { |
3 | home-manager.users.${userName}.programs.mpv = { | 3 | home-manager.users.${userName}.programs.mpv = { |
4 | enable = true; | 4 | enable = true; |
@@ -7,15 +7,28 @@ | |||
7 | }; | 7 | }; |
8 | config = { | 8 | config = { |
9 | ytdl = true; | 9 | ytdl = true; |
10 | ytdl-format = "bestvideo[width<=2560][height<=1440][fps<=60][protocol!=http_dash_segments]+bestaudio[protocol!=http_dash_segments]/best[width<=2560][height<=1440][fps<=60][protocol!=http_dash_segments]/best[protocol!=http_dash_segments]"; | 10 | ytdl-format = lib.concatStringsSep "/" [ |
11 | ytdl-raw-options = "netrc=,mark-watched=,cookies=${config.home-manager.users.${userName}.home.homeDirectory}/Downloads/cookies.txt"; | 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 | ytdl-raw-options = lib.concatStringsSep "," [ | ||
16 | "netrc=" | ||
17 | "mark-watched=" | ||
18 | "cookies=${config.home-manager.users.${userName}.home.homeDirectory}/Downloads/cookies.txt" | ||
19 | ]; | ||
12 | sub = false; | 20 | sub = false; |
13 | osd-font = "DejaVu Sans"; | 21 | osd-font = "DejaVu Sans"; |
14 | vo = "gpu"; | 22 | vo = "gpu"; |
15 | hwdec = "auto"; | 23 | hwdec = "auto"; |
16 | force-window = "yes"; | 24 | force-window = "yes"; |
17 | script-opts = "osc-layout=topbar,vidscale=no,deadzonesize=0.9"; | ||
18 | af = "lavfi=[dynaudnorm=f=100:g=31:s=20.0]"; | 25 | af = "lavfi=[dynaudnorm=f=100:g=31:s=20.0]"; |
26 | script-opts = lib.concatStringsSep "," [ | ||
27 | "osc-layout=topbar" | ||
28 | "vidscale=no" | ||
29 | "deadzonesize=0.9" | ||
30 | "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp" | ||
31 | ]; | ||
19 | }; | 32 | }; |
20 | scripts = let | 33 | scripts = let |
21 | reload = pkgs.stdenv.mkDerivation rec { | 34 | reload = pkgs.stdenv.mkDerivation rec { |