Skip to content

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

Description

@nhooey

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions