summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-05-26 13:58:07 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-05-26 13:58:07 +0200
commitfc6cf6169868e60c189e4b243330c3717ff159f3 (patch)
tree3f6dea9c1420e23756257b5abea27ec9ed92d58a /user-profiles
parent84f2affd66a0ff3947b91a30308cb8e6a8ff7594 (diff)
downloadnixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.gz
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.bz2
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.xz
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.zip
...
Diffstat (limited to 'user-profiles')
-rw-r--r--user-profiles/mpv/default.nix12
-rw-r--r--user-profiles/tmux/default.nix6
2 files changed, 14 insertions, 4 deletions
diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix
index 4d6e3ea6..704ccab0 100644
--- a/user-profiles/mpv/default.nix
+++ b/user-profiles/mpv/default.nix
@@ -9,7 +9,7 @@
9 ytdl = true; 9 ytdl = true;
10 sub = false; 10 sub = false;
11 osd-font = "DejaVu Sans"; 11 osd-font = "DejaVu Sans";
12 vo = "gpu"; 12 # vo = "gpu";
13 hwdec = "auto"; 13 hwdec = "auto";
14 force-window = "yes"; 14 force-window = "yes";
15 # af = "lavfi=[dynaudnorm=f=100:g=31:s=20.0]"; 15 # af = "lavfi=[dynaudnorm=f=100:g=31:s=20.0]";
@@ -18,6 +18,8 @@
18 "vidscale=no" 18 "vidscale=no"
19 "deadzonesize=0.9" 19 "deadzonesize=0.9"
20 "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp" 20 "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp"
21 "chapterskip-skip=sponsor"
22 "chapterskip-categories=sponsor>%[SponsorBlock%]: Sponsor"
21 ]; 23 ];
22 }; 24 };
23 scripts = [ 25 scripts = [
@@ -55,6 +57,14 @@
55 57
56 passthru.scriptName = "mpris.so"; 58 passthru.scriptName = "mpris.so";
57 })) 59 }))
60 (pkgs.stdenv.mkDerivation (sources.mpv-chapterskip // rec {
61 installPhase = ''
62 install -d $out/share/mpv/scripts
63 install -m 0644 chapterskip.lua $out/share/mpv/scripts/${passthru.scriptName}
64 '';
65
66 passthru.scriptName = "chapterskip.lua";
67 }))
58 ]; 68 ];
59 }; 69 };
60} 70}
diff --git a/user-profiles/tmux/default.nix b/user-profiles/tmux/default.nix
index 4252c099..11c53788 100644
--- a/user-profiles/tmux/default.nix
+++ b/user-profiles/tmux/default.nix
@@ -22,8 +22,8 @@
22 }); 22 });
23 }; 23 };
24 24
25 # home.packages = [ 25 home.packages = [
26 # (pkgs.tmuxp.override { python3Packages = pkgs.python37Packages; }) 26 pkgs.tmuxp
27 # ]; 27 ];
28 }; 28 };
29} 29}