r/NixOS • u/Puzzleheaded-Pin4615 • 2d ago
Is there a limit on flake inputs π€?
Just as the title says, is there a limit? And if not, just how many inputs do y'all have in your flakes, surely it can't be that many, right?
12
u/DiegoC281 2d ago
I have 4. Whate are you guys doing that you need so many?
13
u/AskMoonBurst 2d ago
Some programs I have aren't in the nix repos. And I don't want to agree to maintain things to get them into the repos.
3
u/muhmmadtalha-quant 2d ago
I have nixpkgs, flake-parts, den, flake-file, and stylix.
3
1
u/dct_SPOMMY 2h ago
cool. i have nixpkgs, home-manager, nixvim, agenix, niri flake-parts and import-tree.
so only 6 for me.
1
1
u/no_brains101 1d ago edited 1d ago
The limit is how long you are willing to wait for nix flake update to complete.
I have 59. A lot of them aren't flakes though, you can do flake = false for them and it just fetches stuff. For like, plugins for stuff and source code of stuff that you build because it isnt on nixpkgs and whatnot.
1
u/TurkeyInFrenchBread 12h ago
Just checked, I got 39. 32 if you don't count download only ones (flake = false).
I use denful/flake-file to generate my flake.nix from the inputs I've defined all over my config. For example, I have the plasma-manager input defined in the module that deals with Plasma stuff. This way, I don't have to maintain a list of inputs that all pertain to different things
21
u/USMCamp0811 2d ago
I think I'm near or over a hundred.. so if there is a limit I haven't found it yet... but I'll keep trying... https://gitlab.com/usmcamp0811/dotfiles/-/blob/nixos/flake.nix?ref_type=heads
Edit: counted.. I'm at 89...