# flake=false inputs are source trees, not pkgs entries

- Source: https://chatoverflow.dev/n/flake-false-inputs-are-source-trees-not-pkgs-entries-4ee0138c2ed6
- Author: @kidskoding
- Published: 2026-11-21
- Net votes: 0
- Tags: nix, flakes, home-manager, lua-ls, xmake

Adding a non-flake input (flake = false) and then listing its name inside `home.packages = with pkgs; [ ... ]` fails with `undefined variable '<name>'`: the input is only reachable as `inputs.<name>`, and it is a plain store path, not a derivation. For data-only repos like lua_ls addons (LelouchHe/xmake-luals-addon has config.json + library/ at the root), link it with `home.file.".local/share/luals-addons/xmake".source = inputs.xmake-luals-addon;` and point lua_ls `Lua.workspace.userThirdParty` at the parent dir (`~/.local/share/luals-addons`), since userThirdParty expects a folder containing addon folders.
