Background
I am using flake-parts now, I have multiple nixosConfigurations and I am looking for a framework to organize them better in my main flake.
Issue
I tried to use nixverse, but I run into some errors.
First of all the documentation is referring to nixverse.load which doesn't exist. It wasn't hard to understand that, this is a typo and the proper load function is under lib.
I deleted all my files and added the most simplest flake setup, but I got
error: infinite recursion encountered
After that, i initialized the template in a new project and got the same error.
Stack trace
{} nix flake show | 13:55
warning: Git tree '/tmp/flaky' is dirty
warning: creating lock file "/tmp/flaky/flake.lock":
• Added input 'nixpkgs-unstable':
'github:NixOS/nixpkgs/e99366c665bdd53b7b500ccdc5226675cfc51f45?narHash=sha256-EiED5k6gXTWoAIS8yQqi5mAX6ojnzpHwAQTS3ykeYMg%3D' (2025-10-28)
• Added input 'nixverse':
'github:hgl/nixverse/e10bc0ae8bc92fa44b896ddfc7cb5078614c4eec?narHash=sha256-vb7825eBSXlwlSYrgkKpgYfflc8/3SLx2jc6XQ99Mzs%3D' (2025-10-23)
• Added input 'nixverse/flake-parts':
'github:hercules-ci/flake-parts/644e0fc48951a860279da645ba77fe4a6e814c5e?narHash=sha256-TVcTNvOeWWk1DXljFxVRp%2BE0tzG1LhrVjOGGoMHuXio%3D' (2025-07-21)
• Added input 'nixverse/flake-parts/nixpkgs-lib':
'github:nix-community/nixpkgs.lib/14a40a1d7fb9afa4739275ac642ed7301a9ba1ab?narHash=sha256-urW/Ylk9FIfvXfliA1ywh75yszAbiTEVgpPeinFyVZo%3D' (2025-06-29)
• Added input 'nixverse/nix-darwin':
'github:lnl7/nix-darwin/e04a388232d9a6ba56967ce5b53a8a6f713cdfcf?narHash=sha256-HsJM3XLa43WpG%2B665aGEh8iS8AfEwOIQWk3Mke3e7nk%3D' (2025-06-30)
• Added input 'nixverse/nix-darwin/nixpkgs':
follows 'nixverse/nixpkgs'
• Added input 'nixverse/nixos-anywhere':
'github:nix-community/nixos-anywhere/837dd09c60010cad86d6c57bee91688fc3335f37?narHash=sha256-1DvLPfSoyzD/YZdUizuR6ktQosVLrNUaO3/w5yDSJBc%3D' (2025-07-29)
• Added input 'nixverse/nixos-anywhere/disko':
'github:nix-community/disko/17d08c65c241b1d65b3ddf79e3fac1ddc870b0f6?narHash=sha256-W8KiJIrVwmf43JOPbbTu5lzq%2BcmdtRqaNbOsZigjioY%3D' (2025-06-06)
• Added input 'nixverse/nixos-anywhere/disko/nixpkgs':
follows 'nixverse/nixos-anywhere/nixpkgs'
• Added input 'nixverse/nixos-anywhere/flake-parts':
'github:hercules-ci/flake-parts/49f0870db23e8c1ca0b5259734a02cd9e1e371a1?narHash=sha256-F82%2BgS044J1APL0n4hH50GYdPRv/5JWm34oCJYmVKdE%3D' (2025-06-01)
• Added input 'nixverse/nixos-anywhere/flake-parts/nixpkgs-lib':
follows 'nixverse/nixos-anywhere/nixpkgs'
• Added input 'nixverse/nixos-anywhere/nix-vm-test':
'github:Mic92/nix-vm-test/d6642fbaf42fc98883d84bab66cd0ec720d9dd0c?narHash=sha256-vftOR%2B7zwnMWl5UpG32GL1VBeNGTDZZT0hv%2B2uNuBGw%3D' (2025-06-01)
• Added input 'nixverse/nixos-anywhere/nix-vm-test/nixpkgs':
follows 'nixverse/nixos-anywhere/nixpkgs'
• Added input 'nixverse/nixos-anywhere/nixos-images':
'github:nix-community/nixos-images/aa38dbbdf0e955baef7e03dfc4265ae3fdac4808?narHash=sha256-4%2BfY7i%2Bq78F3t6APz0cMC4kRxsyCb%2BUTyfhbckkCd7Q%3D' (2025-06-05)
• Added input 'nixverse/nixos-anywhere/nixos-images/nixos-stable':
follows 'nixverse/nixos-anywhere/nixos-stable'
• Added input 'nixverse/nixos-anywhere/nixos-images/nixos-unstable':
follows 'nixverse/nixos-anywhere/nixpkgs'
• Added input 'nixverse/nixos-anywhere/nixos-stable':
'github:NixOS/nixpkgs/4792576cb003c994bd7cc1edada3129def20b27d?narHash=sha256-DJcgJMekoxVesl9kKjfLPix2Nbr42i7cpEHJiTnBUwU%3D' (2025-06-05)
• Added input 'nixverse/nixos-anywhere/nixpkgs':
follows 'nixverse/nixpkgs'
• Added input 'nixverse/nixos-anywhere/treefmt-nix':
'github:numtide/treefmt-nix/a05be418a1af1198ca0f63facb13c985db4cb3c5?narHash=sha256-eEy8cuS0mZ2j/r/FE0/LYBSBcIs/MKOIVakwHVuqTfk%3D' (2025-06-06)
• Added input 'nixverse/nixos-anywhere/treefmt-nix/nixpkgs':
follows 'nixverse/nixos-anywhere/nixpkgs'
• Added input 'nixverse/nixpkgs':
follows 'nixpkgs-unstable'
git+file:///tmp/flaky
error:
… while evaluating the attribute 'root.result'
at «flakes-internal»/call-flake.nix:94:7:
93| {
94| result =
| ^
95| if node.flake or true then
… in the left operand of the update (//) operator
at «flakes-internal»/call-flake.nix:81:9:
80| # This is shadowed in the next //
81| // sourceInfo
| ^
82| // {
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: infinite recursion encountered
at /nix/store/zjq7krihrkij0035dgzj4w8cnh4vk4af-source/lib/default.nix:18:5:
17| load =
18| {
| ^
19| inputs,
Background
I am using flake-parts now, I have multiple nixosConfigurations and I am looking for a framework to organize them better in my main flake.
Issue
I tried to use nixverse, but I run into some errors.
First of all the documentation is referring to
nixverse.loadwhich doesn't exist. It wasn't hard to understand that, this is a typo and the proper load function is under lib.I deleted all my files and added the most simplest flake setup, but I got
error: infinite recursion encounteredAfter that, i initialized the template in a new project and got the same error.
Stack trace
{} nix flake show | 13:55 warning: Git tree '/tmp/flaky' is dirty warning: creating lock file "/tmp/flaky/flake.lock": • Added input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/e99366c665bdd53b7b500ccdc5226675cfc51f45?narHash=sha256-EiED5k6gXTWoAIS8yQqi5mAX6ojnzpHwAQTS3ykeYMg%3D' (2025-10-28) • Added input 'nixverse': 'github:hgl/nixverse/e10bc0ae8bc92fa44b896ddfc7cb5078614c4eec?narHash=sha256-vb7825eBSXlwlSYrgkKpgYfflc8/3SLx2jc6XQ99Mzs%3D' (2025-10-23) • Added input 'nixverse/flake-parts': 'github:hercules-ci/flake-parts/644e0fc48951a860279da645ba77fe4a6e814c5e?narHash=sha256-TVcTNvOeWWk1DXljFxVRp%2BE0tzG1LhrVjOGGoMHuXio%3D' (2025-07-21) • Added input 'nixverse/flake-parts/nixpkgs-lib': 'github:nix-community/nixpkgs.lib/14a40a1d7fb9afa4739275ac642ed7301a9ba1ab?narHash=sha256-urW/Ylk9FIfvXfliA1ywh75yszAbiTEVgpPeinFyVZo%3D' (2025-06-29) • Added input 'nixverse/nix-darwin': 'github:lnl7/nix-darwin/e04a388232d9a6ba56967ce5b53a8a6f713cdfcf?narHash=sha256-HsJM3XLa43WpG%2B665aGEh8iS8AfEwOIQWk3Mke3e7nk%3D' (2025-06-30) • Added input 'nixverse/nix-darwin/nixpkgs': follows 'nixverse/nixpkgs' • Added input 'nixverse/nixos-anywhere': 'github:nix-community/nixos-anywhere/837dd09c60010cad86d6c57bee91688fc3335f37?narHash=sha256-1DvLPfSoyzD/YZdUizuR6ktQosVLrNUaO3/w5yDSJBc%3D' (2025-07-29) • Added input 'nixverse/nixos-anywhere/disko': 'github:nix-community/disko/17d08c65c241b1d65b3ddf79e3fac1ddc870b0f6?narHash=sha256-W8KiJIrVwmf43JOPbbTu5lzq%2BcmdtRqaNbOsZigjioY%3D' (2025-06-06) • Added input 'nixverse/nixos-anywhere/disko/nixpkgs': follows 'nixverse/nixos-anywhere/nixpkgs' • Added input 'nixverse/nixos-anywhere/flake-parts': 'github:hercules-ci/flake-parts/49f0870db23e8c1ca0b5259734a02cd9e1e371a1?narHash=sha256-F82%2BgS044J1APL0n4hH50GYdPRv/5JWm34oCJYmVKdE%3D' (2025-06-01) • Added input 'nixverse/nixos-anywhere/flake-parts/nixpkgs-lib': follows 'nixverse/nixos-anywhere/nixpkgs' • Added input 'nixverse/nixos-anywhere/nix-vm-test': 'github:Mic92/nix-vm-test/d6642fbaf42fc98883d84bab66cd0ec720d9dd0c?narHash=sha256-vftOR%2B7zwnMWl5UpG32GL1VBeNGTDZZT0hv%2B2uNuBGw%3D' (2025-06-01) • Added input 'nixverse/nixos-anywhere/nix-vm-test/nixpkgs': follows 'nixverse/nixos-anywhere/nixpkgs' • Added input 'nixverse/nixos-anywhere/nixos-images': 'github:nix-community/nixos-images/aa38dbbdf0e955baef7e03dfc4265ae3fdac4808?narHash=sha256-4%2BfY7i%2Bq78F3t6APz0cMC4kRxsyCb%2BUTyfhbckkCd7Q%3D' (2025-06-05) • Added input 'nixverse/nixos-anywhere/nixos-images/nixos-stable': follows 'nixverse/nixos-anywhere/nixos-stable' • Added input 'nixverse/nixos-anywhere/nixos-images/nixos-unstable': follows 'nixverse/nixos-anywhere/nixpkgs' • Added input 'nixverse/nixos-anywhere/nixos-stable': 'github:NixOS/nixpkgs/4792576cb003c994bd7cc1edada3129def20b27d?narHash=sha256-DJcgJMekoxVesl9kKjfLPix2Nbr42i7cpEHJiTnBUwU%3D' (2025-06-05) • Added input 'nixverse/nixos-anywhere/nixpkgs': follows 'nixverse/nixpkgs' • Added input 'nixverse/nixos-anywhere/treefmt-nix': 'github:numtide/treefmt-nix/a05be418a1af1198ca0f63facb13c985db4cb3c5?narHash=sha256-eEy8cuS0mZ2j/r/FE0/LYBSBcIs/MKOIVakwHVuqTfk%3D' (2025-06-06) • Added input 'nixverse/nixos-anywhere/treefmt-nix/nixpkgs': follows 'nixverse/nixos-anywhere/nixpkgs' • Added input 'nixverse/nixpkgs': follows 'nixpkgs-unstable' git+file:///tmp/flaky error: … while evaluating the attribute 'root.result' at «flakes-internal»/call-flake.nix:94:7: 93| { 94| result = | ^ 95| if node.flake or true then … in the left operand of the update (//) operator at «flakes-internal»/call-flake.nix:81:9: 80| # This is shadowed in the next // 81| // sourceInfo | ^ 82| // { (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: infinite recursion encountered at /nix/store/zjq7krihrkij0035dgzj4w8cnh4vk4af-source/lib/default.nix:18:5: 17| load = 18| { | ^ 19| inputs,