From 59d226d797cdf121956c24ec0f3e94db8446f6c6 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 30 Dec 2024 22:43:44 -0600 Subject: [PATCH] home/tools/yazi: enable mpv on darwin again --- .../programs/terminal/tools/yazi/yazi.nix | 40 +++++++++---------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/modules/home/programs/terminal/tools/yazi/yazi.nix b/modules/home/programs/terminal/tools/yazi/yazi.nix index 6e9c4a8d..a402bdbb 100644 --- a/modules/home/programs/terminal/tools/yazi/yazi.nix +++ b/modules/home/programs/terminal/tools/yazi/yazi.nix @@ -101,28 +101,24 @@ for = "windows"; } ]; - play = - [ - { - run = "${lib.getExe pkgs.mediainfo} \"$1\"; echo \"Press enter to exit\"; read _"; - block = true; - desc = "Show media info"; - for = "unix"; - } - ] - # FIXME: swift broken nixpkgs - ++ lib.optionals pkgs.stdenv.isLinux [ - { - run = "${lib.getExe config.programs.mpv.package} \"$@\""; - orphan = true; - for = "unix"; - } - { - run = "${lib.getExe config.programs.mpv.package} \"%1\""; - orphan = true; - for = "windows"; - } - ]; + play = [ + { + run = "${lib.getExe pkgs.mediainfo} \"$1\"; echo \"Press enter to exit\"; read _"; + block = true; + desc = "Show media info"; + for = "unix"; + } + { + run = "${lib.getExe config.programs.mpv.package} \"$@\""; + orphan = true; + for = "unix"; + } + { + run = "${lib.getExe config.programs.mpv.package} \"%1\""; + orphan = true; + for = "windows"; + } + ]; }; open =