diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-03 15:51:31 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-03 15:51:31 +0100 |
commit | 27a172993d78bf736ab1e5a14a7a5525f4866235 (patch) | |
tree | 574961cae5bb86fd88090b21c1680abea0d9ccc8 /user-profiles | |
parent | bc67eb3226ef9880cd368be02dac3afde89661e9 (diff) | |
download | nixos-27a172993d78bf736ab1e5a14a7a5525f4866235.tar nixos-27a172993d78bf736ab1e5a14a7a5525f4866235.tar.gz nixos-27a172993d78bf736ab1e5a14a7a5525f4866235.tar.bz2 nixos-27a172993d78bf736ab1e5a14a7a5525f4866235.tar.xz nixos-27a172993d78bf736ab1e5a14a7a5525f4866235.zip |
...
Diffstat (limited to 'user-profiles')
-rw-r--r-- | user-profiles/mpv/default.nix | 5 | ||||
-rw-r--r-- | user-profiles/yt-dlp.nix | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix index 2df87994..83eba2a9 100644 --- a/user-profiles/mpv/default.nix +++ b/user-profiles/mpv/default.nix | |||
@@ -1,6 +1,6 @@ | |||
1 | { config, lib, userName, pkgs, sources, ... }: | 1 | { lib, userName, pkgs, sources, ... }: |
2 | { | 2 | { |
3 | home-manager.users.${userName} = { | 3 | home-manager.users.${userName} = { config, ... }: { |
4 | programs.mpv = { | 4 | programs.mpv = { |
5 | enable = true; | 5 | enable = true; |
6 | package = pkgs.symlinkJoin { | 6 | package = pkgs.symlinkJoin { |
@@ -105,6 +105,7 @@ | |||
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 | subs-with-matching-audio = false; | 109 | subs-with-matching-audio = false; |
109 | audio-display = false; | 110 | audio-display = false; |
110 | osd-font = "Fira Sans"; | 111 | osd-font = "Fira Sans"; |
diff --git a/user-profiles/yt-dlp.nix b/user-profiles/yt-dlp.nix index 0f0b2204..9e77f734 100644 --- a/user-profiles/yt-dlp.nix +++ b/user-profiles/yt-dlp.nix | |||
@@ -14,7 +14,7 @@ | |||
14 | ]; | 14 | ]; |
15 | embed-subs = true; | 15 | embed-subs = true; |
16 | # write-subs = true; | 16 | # write-subs = true; |
17 | # write-auto-subs = true; | 17 | write-auto-subs = true; |
18 | sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; | 18 | sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; |
19 | prefer-free-formats = true; | 19 | prefer-free-formats = true; |
20 | embed-metadata = true; | 20 | embed-metadata = true; |