-
-
Notifications
You must be signed in to change notification settings - Fork 164
nixos-anywhere: Install jq when using --no-disko-deps #574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
We also provide https://github.com/nix-community/nixos-images?tab=readme-ov-file where |
Thanks for the tip. In my case, the remote machine is in a cloud environment that
Which requires I sent the PR because it seems the official installer already contains every tool needed by nixos-anywhere, except for jq, and I assumed if jq could be added, we could use I'm writing a downstream tool that uses nixos-anywhere to install nixos to remote machines, and I hoped to make the official installer a first class citizen where even if the ram is limited, nixos could still be successfully installed without user intervention. I wonder if this goal is feasible? If the design goal is that no deps disko should not trigger network download, which makes sense, then maybe it's not? I've fixed the build error though. |
Could you check if jq is included in the nixos installer closure? Maybe we can just expose jq in the NixOS image. |
We could add |
It's actually always in the installer: https://github.com/NixOS/nixpkgs/blob/531ef345f82f4fcaf04646b961963ed69f9c1f09/nixos/modules/profiles/installation-device.nix#L115 Are you sure you are using the official nixos installer? If you are using a nix installer it should be easy to just include additional lines to install missing tools. |
Ah maybe extraDependencies doesn't get propageted into the $PATH. But in that case we might as well just include it environment.systemPackages as well. |
Yep, it's not in the PATH, but is in the store already, confirmed with the 24.11 image. |
Okay, than please open a pull request in nixpkgs and link it here. |
PR has been merged. |
This is a different way of fixing nix-community/disko#1091
Nixos-anywhere will run commands like:
During installation, and with --no-disko-deps,
jq
isn't available on the official nixos-installer, and these command can fail.