From c52c7f314ccadcc2fcd91e28c8fd1b88f6d5ce0c Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 18 Oct 2024 17:07:46 +0200 Subject: 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. --- modules/home.legacy/conf/yt/config.toml | 2 ++ modules/home.legacy/conf/yt/default.nix | 5 +++++ modules/home.legacy/conf/yt/input.conf | 9 +++++++++ modules/home.legacy/conf/yt/mpv.conf | 2 ++ 4 files changed, 18 insertions(+) create mode 100644 modules/home.legacy/conf/yt/config.toml create mode 100644 modules/home.legacy/conf/yt/default.nix create mode 100644 modules/home.legacy/conf/yt/input.conf create mode 100644 modules/home.legacy/conf/yt/mpv.conf (limited to 'modules/home.legacy/conf/yt') 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 -- cgit 1.4.1