From 1442b23477fc5fb48b3e64c9f950aa0683e48ee7 Mon Sep 17 00:00:00 2001 From: Frothy <76622149+FrothyMarrow@users.noreply.github.com> Date: Sun, 11 Feb 2024 09:28:04 -0500 Subject: [PATCH] filetree/nvimtree: fix default systemOpen on darwin --- modules/filetree/nvimtree/nvimtree.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/filetree/nvimtree/nvimtree.nix b/modules/filetree/nvimtree/nvimtree.nix index 3e68f8af9..11aaaf29f 100644 --- a/modules/filetree/nvimtree/nvimtree.nix +++ b/modules/filetree/nvimtree/nvimtree.nix @@ -191,7 +191,10 @@ in { }; cmd = mkOption { - default = "${pkgs.xdg-utils}/bin/xdg-open"; + default = + if pkgs.stdenv.isDarwin + then "open" + else "${pkgs.xdg-utils}/bin/xdg-open"; description = "The open command itself"; type = types.str; };