Skip to content

[CHORE] Bake /etc/nix/nix.conf enabling nix-command/flakes for on-demand 'nix shell' #739

Closed

Description

@c-vigo

Description

The image bundles Nix (2.34.7) but ships no /etc/nix/nix.conf, so nix-command/flakes are disabled by default. Ad-hoc on-demand tooling (nix shell nixpkgs#cargo, nix run …) — the recommended way to pull a toolchain the minimal image doesn't bake — fails unless the user passes --extra-experimental-features "nix-command flakes". The default registry also resolves nixpkgs to unstable, drifting from the image's pinned nixos-26.05.

Steps to Reproduce

In ghcr.io/vig-os/devcontainer:dev: nix shell nixpkgs#cargo -c cargo --version.

Expected Behavior

nix shell/nix run work out of the box for ad-hoc on-demand tools.

Actual Behavior

error: experimental Nix feature 'nix-command' is disabled; add '--extra-experimental-features nix-command' to enable it

Environment

  • Image: ghcr.io/vig-os/devcontainer:dev (from feature/625-nix-claude-migration @ 8f778f5); Podman 5.8.2; NixOS host.

Possible Solution

Bake /etc/nix/nix.conf with experimental-features = nix-command flakes (and consider pinning the flake registry nixpkgs to the image's nixos-26.05 to avoid unstable drift for on-demand tools). Enables the "source extra toolchains on-demand" model for the minimal image.

Changelog Category

Added

Activity

  1. added
    chore
    priority:low
    area:image
    on Jun 29, 2026
  2. c-vigo commented on Jun 30, 2026

    @c-vigo
    ContributorAuthor

    Resolved by #742 (0aa5125) on the Nix-migration branch (epic #625, PR #670). Closing as part of post-merge backlog hygiene (#677).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:imagechorepriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions