From c334930099627f96f10b72000d5025ecfc42f007 Mon Sep 17 00:00:00 2001 From: rootiest Date: Fri, 8 Nov 2024 14:37:47 -0500 Subject: [PATCH] fix: correct handling of Nix environment variable --- config/platform.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/platform.lua b/config/platform.lua index d139e8c..999a15a 100644 --- a/config/platform.lua +++ b/config/platform.lua @@ -41,12 +41,14 @@ end -- Check for Nix and respond accordingly local is_nix = os.getenv("IN_NIX_SHELL") +local nix = false if is_nix == "true" then opts.front_end = "WebGpu" + nix = true end -- Set global variables for convenience -ISNIX = is_nix +ISNIX = nix MYOS = myos -- Return the opts table