about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/yt
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 17:07:46 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 17:07:46 +0200
commitc52c7f314ccadcc2fcd91e28c8fd1b88f6d5ce0c (patch)
treee8b947710b467b32740598ff574982097836f66c /modules/home.legacy/conf/yt
parentchore(pkgs/yt): 1.2.1 -> 1.3.0 (diff)
downloadnixos-config-c52c7f314ccadcc2fcd91e28c8fd1b88f6d5ce0c.tar.gz
nixos-config-c52c7f314ccadcc2fcd91e28c8fd1b88f6d5ce0c.zip
refactor(modules): Move all system modules to `by-name`
From now on all modules should be added to the new `by-name` directory.
This should help remove the (superficial and utterly useless)
distinction between `home-manager` and `NixOS` modules.
Diffstat (limited to 'modules/home.legacy/conf/yt')
-rw-r--r--modules/home.legacy/conf/yt/config.toml2
-rw-r--r--modules/home.legacy/conf/yt/default.nix5
-rw-r--r--modules/home.legacy/conf/yt/input.conf9
-rw-r--r--modules/home.legacy/conf/yt/mpv.conf2
4 files changed, 18 insertions, 0 deletions
diff --git a/modules/home.legacy/conf/yt/config.toml b/modules/home.legacy/conf/yt/config.toml
new file mode 100644
index 00000000..981481d9
--- /dev/null
+++ b/modules/home.legacy/conf/yt/config.toml
@@ -0,0 +1,2 @@
+[download]
+max_cache_size = "5 GiB"
diff --git a/modules/home.legacy/conf/yt/default.nix b/modules/home.legacy/conf/yt/default.nix
new file mode 100644
index 00000000..507a0db1
--- /dev/null
+++ b/modules/home.legacy/conf/yt/default.nix
@@ -0,0 +1,5 @@
+{...}: {
+  xdg.configFile."yt/mpv.conf".source = ./mpv.conf;
+  xdg.configFile."yt/mpv.input.conf".source = ./input.conf;
+  xdg.configFile."yt/config.toml".source = ./config.toml;
+}
diff --git a/modules/home.legacy/conf/yt/input.conf b/modules/home.legacy/conf/yt/input.conf
new file mode 100644
index 00000000..f374f062
--- /dev/null
+++ b/modules/home.legacy/conf/yt/input.conf
@@ -0,0 +1,9 @@
+Q script-message yt-mark-watch-later
+c script-message yt-comments-external
+C script-message yt-comments-local
+d script-message yt-description
+WHEEL_LEFT playlist-prev
+WHEEL_RIGHT playlist-next
+q script-message yt-mark-done-and-go-next
+r script-message yt-check-new-videos
+P quit
diff --git a/modules/home.legacy/conf/yt/mpv.conf b/modules/home.legacy/conf/yt/mpv.conf
new file mode 100644
index 00000000..b6d2501f
--- /dev/null
+++ b/modules/home.legacy/conf/yt/mpv.conf
@@ -0,0 +1,2 @@
+speed=2.7
+volume=75