From 43112fbc1fe65ee728d0001a639d2ec8e5aeba04 Mon Sep 17 00:00:00 2001 From: voidarc Date: Mon, 6 Jul 2026 16:30:31 +0100 Subject: [PATCH] fixed the broken flake thing --- flake.nix | 4 ++++ lua/plugins/init.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 931665a..1e16806 100644 --- a/flake.nix +++ b/flake.nix @@ -53,6 +53,10 @@ # Define the default package for this system default = inputs.wrappers.wrappers.neovim.wrap { inherit pkgs; + env = { + "CONFIG_ROOT" = ./.; + "NVIM_APPNAME" = "nvim-voidarc-remote"; + }; runtimePkgs = pkgList; settings.config_directory = ./.; }; diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 155def3..d2fdfea 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,7 +1,7 @@ local plugins = {} -- 1. Setup paths -local lua_path = vim.fn.stdpath("config") .. "/lua" +local lua_path = os.getenv("CONFIG_ROOT") .. "/lua" local plugin_dir = lua_path .. "/plugins" -- 2. Use ** to search recursively for all .lua files