summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
Diffstat (limited to 'user-profiles')
-rw-r--r--user-profiles/mpv/default.nix21
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 {