about summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/by-name/yt/yt/config.toml (renamed from modules/home.legacy/conf/yt/config.toml)0
-rw-r--r--modules/by-name/yt/yt/input.conf (renamed from modules/home.legacy/conf/yt/input.conf)9
-rw-r--r--modules/by-name/yt/yt/module.nix21
-rw-r--r--modules/by-name/yt/yt/mpv.conf (renamed from modules/home.legacy/conf/yt/mpv.conf)0
-rw-r--r--modules/home.legacy/conf/default.nix1
-rw-r--r--modules/home.legacy/conf/yt/default.nix5
6 files changed, 28 insertions, 8 deletions
diff --git a/modules/home.legacy/conf/yt/config.toml b/modules/by-name/yt/yt/config.toml
index 981481d9..981481d9 100644
--- a/modules/home.legacy/conf/yt/config.toml
+++ b/modules/by-name/yt/yt/config.toml
diff --git a/modules/home.legacy/conf/yt/input.conf b/modules/by-name/yt/yt/input.conf
index f374f062..10e453a1 100644
--- a/modules/home.legacy/conf/yt/input.conf
+++ b/modules/by-name/yt/yt/input.conf
@@ -1,9 +1,14 @@
-Q script-message yt-mark-watch-later
 c script-message yt-comments-external
 C script-message yt-comments-local
-d script-message yt-description
+
+d script-message yt-description-external
+D script-message yt-description-local
+
 WHEEL_LEFT playlist-prev
 WHEEL_RIGHT playlist-next
+
 q script-message yt-mark-done-and-go-next
+Q script-message yt-mark-watch-later
 r script-message yt-check-new-videos
+
 P quit
diff --git a/modules/by-name/yt/yt/module.nix b/modules/by-name/yt/yt/module.nix
new file mode 100644
index 00000000..b93feeb5
--- /dev/null
+++ b/modules/by-name/yt/yt/module.nix
@@ -0,0 +1,21 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.soispha.programs.yt;
+in {
+  options.soispha.programs.yt = {
+    enable = lib.mkEnableOption "the yt cli client";
+  };
+
+  config = {
+    home-manager.users.soispha = lib.mkIf cfg.enable {
+      xdg.configFile = {
+        "yt/mpv.conf".source = ./mpv.conf;
+        "yt/mpv.input.conf".source = ./input.conf;
+        "yt/config.toml".source = ./config.toml;
+      };
+    };
+  };
+}
diff --git a/modules/home.legacy/conf/yt/mpv.conf b/modules/by-name/yt/yt/mpv.conf
index b6d2501f..b6d2501f 100644
--- a/modules/home.legacy/conf/yt/mpv.conf
+++ b/modules/by-name/yt/yt/mpv.conf
diff --git a/modules/home.legacy/conf/default.nix b/modules/home.legacy/conf/default.nix
index ac343349..328f4dab 100644
--- a/modules/home.legacy/conf/default.nix
+++ b/modules/home.legacy/conf/default.nix
@@ -34,7 +34,6 @@
     ./timewarrior
     ./tridactyl
     ./xdg
-    ./yt
     ./ytcc
   ];
 }
diff --git a/modules/home.legacy/conf/yt/default.nix b/modules/home.legacy/conf/yt/default.nix
deleted file mode 100644
index 507a0db1..00000000
--- a/modules/home.legacy/conf/yt/default.nix
+++ /dev/null
@@ -1,5 +0,0 @@
-{...}: {
-  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;
-}