Skip to content

Add jq as dependency to diskoScriptNoDeps #1091

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hgl
Copy link
Contributor

@hgl hgl commented Jul 14, 2025

NixOS installer by default doesn't include jq. Using nixos-anywhere --no-disko-deps can fail with jq not being found.

I'm not sure this is the right fix, but is the easiest one, and jq is small enough to not defeat the purpose of nodeps scripts.

@Lassulus
Copy link
Collaborator

hmm, nodeps should actually mean no deps, I usually create a new iso with jq, I guess the right fix would be to port from jq to awk or something else that is available on the iso.

But what is the usecase here? why not use the version with dependencies or is this called from another tool?

@Lassulus
Copy link
Collaborator

the actual problem is also, that this induces a dependency on the system, currently noDeps can be build on aarch64-linux and still executes on x86, with this change, the jq package will depend on the architecture

@hgl
Copy link
Contributor Author

hgl commented Jul 15, 2025

But what is the usecase here?

When using the version with dependencies in nixos-anywhere, it can fail if the remote server has limited amount of memory, since all the dependencies are installed to the ram on the NixOS installer.

the jq package will depend on the architecture

Do you think this PR should be made to nixos-anywhere? Maybe use nix profile install to install jq before calling this script? Wonder what @Mic92 thinks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants