Visitar URL original
Docs falsely state that `lazy-trees` are enabled by default · Issue #328 · DeterminateSystems/nix-src · GitHub
Skip to content

Docs falsely state that lazy-trees are enabled by default #328

Open

Description

@erikarvstedt

Docs:

Lazy trees are currently stable in Determinate Nix and enabled by default for all users.

But lazy-trees is disabled by default in the current version (3.15.2).
Also, github:DeterminateSystems/determinate#nixosModules.default doesn't enable lazy-trees in nix.conf.

To check that lazy-trees is off by default, ensure that nix.conf doesn't enable it and then run:

# Create tmp flake
mkdir -p /tmp/tmpflake
echo '{ outputs = _: { lib.a = "a"; }; }' > /tmp/tmpflake/flake.nix
touch /tmp/tmpflake/mydummyfile.tmp
(cd /tmp/tmpflake && git init && git add . && git commit -m init)

nix eval /tmp/tmpflake#lib.a

# Check that flake src was copied
ls /nix/store/*/mydummyfile.tmp

Activity

  1. grahamc commented on Jan 28, 2026

    @grahamc
    Member

    This default probably should be improved in nix-src itself, but this is true for users of Determinate Nix which specifically includes running the determinate-nixd daemon. The daemon always writes out a nix.conf which enables lazy-trees.

  2. erikarvstedt commented on Jan 28, 2026

    @erikarvstedt
    Author

    My user story was:

    • See docs page
    • Get curious about det-nix
    • Try out locally in shell.
      Because lazy-trees is a client feature, not a daemon feature, I assumed the default was implemented in the client. Which, I think, is a reasonable assumption.
  3. grahamc commented on Jan 28, 2026

    @grahamc
    Member

    Makes sense, thanks! I'll file a ticket internally too

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

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions