aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-20 13:35:07 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-20 13:35:07 +0200
commit2ace7123e1f1272cdb8aa607af46594fd6ffa425 (patch)
treeb483c46df4a5bc0cbb69bb0db886914b16925fa1 /modules
parentmodules/yt: Add missing `less` dependency to the external command handler (diff)
downloadnixos-config-2ace7123e1f1272cdb8aa607af46594fd6ffa425.zip
modules/yt: Move the command config to its own table
Diffstat (limited to 'modules')
-rw-r--r--modules/by-name/yt/yt/module.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/by-name/yt/yt/module.nix b/modules/by-name/yt/yt/module.nix
index a0360c51..cfcaa4e6 100644
--- a/modules/by-name/yt/yt/module.nix
+++ b/modules/by-name/yt/yt/module.nix
@@ -46,8 +46,8 @@
max_cache_size = "5 GiB";
};
- show = {
- image_show_command = lib.getExe (pkgs.writeShellApplication {
+ commands = {
+ image_show = lib.getExe (pkgs.writeShellApplication {
name = "show_thumbnail";
text = ''
imv -w "floating please" "$1"
@@ -58,9 +58,8 @@
inheritPath = false;
});
- };
- watch = {
- external_command_spawn_script = lib.getExe (pkgs.writeShellApplication {
+
+ external_spawn = lib.getExe (pkgs.writeShellApplication {
name = "start_external_command";
text = builtins.readFile ./external_commands_script.sh;
runtimeInputs = [