Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Docker image seems to be missing commands: nixos-rebuild, systemctl #53

Open
nhooey opened this issue Mar 7, 2023 · 1 comment
Open

Comments

@nhooey
Copy link

nhooey commented Mar 7, 2023

Why does the nixpkgs/nix-unstable Docker image not have nixos-rebuild or systemctl?

$ docker run --tty --interactive nixpkgs/nix-unstable
bash-5.2# nixos-rebuild
bash: nixos-rebuild: command not found
bash-5.2# systemctl
bash: systemctl: command not found
bash-5.2#

Even if that's expected for nixpks/nix-unstable, would you know why it's also the case for nixos/nix, which might be intended as a full NixOS install?

(I'm not sure what the difference between these images are, or what their intended for.)

I asked similarly on Stack Overflow:

@zimbatm
Copy link
Member

zimbatm commented Mar 10, 2023

It's a bit confusing but the container image are shipping the Nix binary. This is only the language and package manager of the full NixOS distribution.

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

No branches or pull requests

2 participants