Skip to content

Nix feature should enable "experimental-features = nix-command flakes" by default #1519

Open

Description

While I understand that Nix flakes are technically still "experimental", IMHO at this point it makes sense to enable them by default.

As per e.g. https://github.com/vorburger/nixfiles/blob/develop/docs/docs/reference/nix-cli.md (and similarly much elsewhere around the Internets), IMHO doing something like this during setup would ease the initial user experience:

echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf

Activity

  1. vorburger commented on Nov 23, 2025

    @vorburger
    Author

    Ah right, RTFM! 😆 https://github.com/devcontainers/features/tree/main/src/nix#options

    "ghcr.io/devcontainers/features/nix:1": {
      "extraNixConfig": "experimental-features = nix-command flakes"
    },

    Does the trick... but IMHO it would be neat (at this stage of Nix flakes) to make this the default.

    Chuck Lantz (@Chuxel)

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions