From 8fdee5b0217dc86a08c7f428ac652c87dd703ed5 Mon Sep 17 00:00:00 2001 From: kiara Date: Mon, 16 Feb 2026 09:28:10 +0100 Subject: [PATCH] /concepts/flakes: add dependency management alternative `flake = false;` clarifies that specifying `flake = false;` on flake inputs can help resolve some of its drawbacks - in this case (if used consistently) getting [duplicate versions](https://zimbatm.com/notes/1000-instances-of-nixpkgs) and having to set `follows`. (this would not solve eager fetching, which would instead be addressed by [lazy trees](https://github.com/NixOS/nix/pull/13225).) to make it more explicit what alternatives address what, a proper approach might be #1212. --- source/concepts/flakes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/source/concepts/flakes.md b/source/concepts/flakes.md index 33baff67e..c98fed014 100644 --- a/source/concepts/flakes.md +++ b/source/concepts/flakes.md @@ -254,6 +254,7 @@ Alternatives: - Handle dependencies with [`npins`]. - Handle dependencies inline using functions such as the [fetchers] or [`builtins.fetchTree`]. +- Use `inputs..flake = false;` [fetchers]: https://nixos.org/manual/nixpkgs/stable/#chap-pkgs-fetchers [`flake-inputs`]: https://github.com/fricklerhandwerk/flake-inputs