Comments (4)
Hi @DeepakKumarKhatri ,
I am on the IDX team and wanted to provide an answer here.
As already pointed out, you don't need to install nix on idx, it's already installed and available there, you are free to use the nix
cli there and if your need a certain version that is different from the one we have installed by default, you can add it to your .idx/dev.nix
file, e.g. pkgs.nixVersions.nix_2_XX
however note that all builds will be handled by the daemon that as of today is at version 2.23.
That said, we don't require that developers build their code with nix, what we provide is a way for you to configure your developer toolchain/environment with nix, after that you're free to use the "native" build tools of your target platform, e.g. npm, gradle, maven, cargo, poetry, etc.
As for sudo
, as @roberth correctly inferred, we don't currently provide sudo
access and I would argue that it's for the most part useless inside IDX, i.e. you won't have write access to the filesystem outside of /home /tmp even with sudo. We have some ideas on relaxing these restrictions but it has not been prioritized as we've not seen much demand for it so far.
However one of the biggest hurdles with sudo
is that it's ingrained in many developers' muscle memory so they naturally use sudo when it's actually not required, one such example.
If you have further questions feel free to ask them at https://community.idx.dev/
from nix.
I believe IDX offers its own Nix integration, based on https://idx.dev/blog/article/nix-on-idx.
The article links this technical documentation as well.
I don't see any mention of using the nix command, so maybe what's going on is that IDX uses Nix to build a customizable but static environment that does not include Nix itself.
Nix already appears to be installed.
in your installer log appears to contradict this, but that may just indicate the presence of aforementioned pre-built Nix store, or perhaps a previous failed installer run.
The lack of sudo indicates that you were not given sufficient control of the IDX environment, which is probably by design.
Considering that Google manages your Nix store, could you ask them whether this is a use case they support?
from nix.
Just to give more precision on the idx setup (as far as I know): it is indeed using Nix to install everything, and Nix should be available in the environment, but you're not supposed to install it yourself. Everything happens by modifying the .idx/dev.nix
file mentioned here
Not sure what causes the "NIX NOT FOUND,"
message. It's probably related to the specific setup of IDX
from nix.
@vkryachko Thank you for going the extra mile and explaining the status. That's much appreciated.
It doesn't seem there's anything left to do here, so I'll go ahead and close this. If you have any questions, feel free to ask.
from nix.
Related Issues (20)
- Document builtins.appendContext
- Enabling submodules for self doesn't work when referencing github repo from `nix run` HOT 1
- Flakes: Enhance Error when Files are not Added to Git HOT 6
- Fetching paths from cache.nixos.org gets slow in certain Docker environments HOT 12
- Have `nix show-config` show where value came from
- Unexpected no-op nix-2.24.1 release. HOT 2
- error: input compression not recognized (private cache using zstd compression) HOT 5
- Cannot use content-addressed derivation as path for builtins.path HOT 1
- Trying setup nix on void linux HOT 1
- Unexpected errors on substitution failures on 2.24.1 release HOT 5
- Different commit id used when using local vs remote tag reference HOT 2
- Nested attribute merging may or may not work as intended HOT 4
- Cannot bind and listen to port with macOS sandbox, even with __darwinAllowLocalNetworking HOT 5
- downloadTarball() returns an uncachable accessor HOT 3
- Install failure - multi-user Sequoia HOT 1
- Flake inputs for Github doesn't respect submodules HOT 2
- Error installing nix in macbook Pro M3 with macOS15 beta 24A5309e HOT 1
- Output faulty element's value too for easy diagnosis
- Build of nix hangs due to gc-auto test
- coredump while printing env from the debugger
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.