Comments (4)
I'd also like to suggest the ability to use shell.nix
files that are not in the workspace root, but somewhere deeper in the directory structure. I often work in "monorepo" scenarios where the shell.nix file I need to enable is not directly in the workspace root directory.
from nix-env-selector.
@tbenst Thank you for the issue.
Now, priority for the project is rewriting the codebase to PureScript and bug fixing. I'll keep the issue in our backlog.
Also, I have good news. You can already use the extension for your propose.
All you need is add the following config to your project
{
"nixEnvSelector.nixShellConfig": "/full/path/to/default.nix"
}
from nix-env-selector.
I think this could be fixed by making use of: ${workspaceFolder}
instead of the deprecated ${workspaceRoot}
:
See: https://code.visualstudio.com/docs/editor/variables-reference#_why-isnt-workspaceroot-documented
from nix-env-selector.
^ this solution works great, thanks! After heavily using nix-env-selector for a few days, I find that I'm copying the same *.nix envs to multiple folders. Perhaps the better feature request is to specify a list of directories for nix-env-selector to search for *.nix files? e.g.
{
"nixEnvSelector.nixShellDirectories": [ "/folder1" "/folder2" ]
}
That way could customize on both user and workspace level.
from nix-env-selector.
Related Issues (20)
- Stuck applying environment HOT 12
- Rustup packages as settings packages HOT 3
- Have the extension output logs in the Output window HOT 4
- Can't make my fhs env work HOT 1
- shell.nix exetubables don't seem to be made available after selecting shell.nix HOT 1
- [Feature]: Support shell.nix files outside of the project directory
- [BUG] Extension don't add package to PATH variable, when some active tabs need any package from shell.nix HOT 4
- "command 'nixEnvSelector.selectEnv' not found" HOT 1
- [Feature]: Support multiroot workspace HOT 2
- C/C++ Support: Can this be used to help generate the c_cpp_properties.json configuration file?
- [Documentation]: Document what `Hit environment` means
- [Feature]: Remember nix environment answer
- [Feature]: VSCode-Remote (SSH) support? HOT 6
- No longer applies shell.nix to integrated terminal? HOT 2
- Extension Development Host does not launch
- Can find packages from nix-shell, but not with nix-env-selector HOT 3
- TypeError when applying nix environment in Remote SSH HOT 3
- [Feature]: VSCodium support HOT 1
- Latest Pylance update brakes python environment HOT 1
- nix-env-selector does not work with flakes HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-env-selector.