{"id":49351042,"url":"https://github.com/denful/import-tree","last_synced_at":"2026-05-13T20:01:58.355Z","repository":{"id":282246922,"uuid":"947942931","full_name":"denful/import-tree","owner":"denful","description":"Import all nix files in a directory tree.","archived":false,"fork":false,"pushed_at":"2026-03-16T20:40:35.000Z","size":266,"stargazers_count":244,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-21T05:44:20.129Z","etag":null,"topics":["automatic-imports","dendritic","flake","nix","nix-flake","nix-modules","non-flakes"],"latest_commit_sha":null,"homepage":"https://import-tree.oeiuwq.com/","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denful.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["vic"],"patreon":null,"open_collective":null,"ko_fi":"oeiuwq","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-03-13T13:48:59.000Z","updated_at":"2026-04-21T05:41:13.000Z","dependencies_parsed_at":"2025-06-30T09:21:25.841Z","dependency_job_id":"bf002125-b4f1-4617-99bd-efdace40ab60","html_url":"https://github.com/denful/import-tree","commit_stats":null,"previous_names":["vic/import-tree","denful/import-tree"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/denful/import-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denful%2Fimport-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denful%2Fimport-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denful%2Fimport-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denful%2Fimport-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denful","download_url":"https://codeload.github.com/denful/import-tree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denful%2Fimport-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32997729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automatic-imports","dendritic","flake","nix","nix-flake","nix-modules","non-flakes"],"created_at":"2026-04-27T10:00:29.633Z","updated_at":"2026-05-13T20:01:58.350Z","avatar_url":"https://github.com/denful.png","language":"Nix","funding_links":["https://github.com/sponsors/vic","https://ko-fi.com/oeiuwq"],"categories":["nix","others"],"sub_categories":[],"readme":"\u003cp align=\"right\"\u003e\n  \u003ca href=\"https://dendritic.oeiuwq.com/sponsor\"\u003e\u003cimg src=\"https://img.shields.io/badge/sponsor-vic-white?logo=githubsponsors\u0026logoColor=white\u0026labelColor=%23FF0000\" alt=\"Sponsor Vic\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://dendritic.oeiuwq.com\"\u003e \u003cimg src=\"https://img.shields.io/badge/Dendritic-Nix-informational?logo=nixos\u0026logoColor=white\" alt=\"Dendritic Nix\"/\u003e \u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e \u003cimg src=\"https://img.shields.io/github/license/vic/import-tree\" alt=\"License\"/\u003e \u003c/a\u003e\n  \u003ca href=\"https://github.com/vic/import-tree/actions\"\u003e\n  \u003cimg src=\"https://github.com/vic/import-tree/actions/workflows/test.yml/badge.svg\" alt=\"CI Status\"/\u003e \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e `import-tree` and [vic](https://bsky.app/profile/oeiuwq.bsky.social)'s [dendritic libs](https://dendritic.oeiuwq.com) made for you with Love++ and AI--. If you like my work, consider [sponsoring](https://dendritic.oeiuwq.com/sponsor)\n\n# 🌲🌴 import-tree 🎄🌳\n\n\u003e Recursively import [Nix modules](https://nix.dev/tutorials/module-system/) from a directory, with a simple, extensible API.\n\n## Features\n\n🌳 Works with NixOS, nix-darwin, home-manager, flake-parts, NixVim, etc.\\\n🌲 Callable as a deps-free Flake or nix lib.\\\n🌴 Sensible defaults and configurable behaviour.\\\n🌵 Chain `.filter`, `.match`, `.map` for precise file selection.\\\n🎄 Extensible: `.addAPI` to create domain-specific instances.\\\n🌿 Built to enable the [Dendritic Pattern](https://github.com/mightyiam/dendritic) on both stable/unstable Nix.\\\n🌱 [Growing](https://github.com/search?q=language%3ANix+import-tree\u0026type=code) [community](https://vic.github.io/dendrix/Dendrix-Trees.html) [adoption](https://github.com/vic/flake-file)\n\n## Quick Start\n\nThe following examples show how to import all module files.\nBy default, paths having `/_` are ignored. See API documentation for advanced usage.\n\n\u003e Related projects: [vic/flake-file](https://github.com/vic/flake-file), [vic/with-inputs](https://github.com/vic/with-inputs)\n\n### Dendritic flake-parts\n\n```nix\n# flake.nix\n{\n  inputs.import-tree.url = \"github:vic/import-tree\";\n  inputs.flake-parts.url = \"github:hercules-ci/flake-parts\";\n\n  outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; }\n   (inputs.import-tree ./modules);\n}\n```\n\n### Dendritic flake without flake-parts\n\n```nix\n# flake.nix\n{\n  inputs.import-tree.url = \"github:vic/import-tree\";\n  inputs.nixpkgs.url = \"github:nixos/nixpkgs/nixpkgs-unstable\";\n\n  outputs = inputs:\n   (inputs.nixpkgs.lib.evalModules {\n      specialArgs.inputs = inputs;\n      modules = [ (inputs.import-tree ./modules)  ];\n   }).config;\n}\n```\n\n### Dendritic Nix (non-flakes, stable Nix)\n\nThis example uses [with-inputs](https://github.com/vic/with-inputs) to provide flake-file inputs from [npins](https://github.com/andir/npins) sources.\n\n```nix\n# default.nix\nlet\n  sources = import ./npins;\n  with-inputs = import sources.with-inputs sources {};\n  outputs = inputs:\n   (inputs.nixpkgs.lib.evalModules {\n      specialArgs.inputs = inputs;\n      modules = [ (inputs.import-tree ./modules)  ];\n   }).config;\nin\nwith-inputs outputs\n```\n\n## Documentation\n\n📖 **[Full documentation](https://import-tree.oeiuwq.com)** — guides, API reference, and examples.\n\n## Testing\n\n`import-tree` uses [`checkmate`](https://github.com/vic/checkmate) for testing:\n\n```sh\nnix flake check github:vic/checkmate --override-input target path:.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenful%2Fimport-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenful%2Fimport-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenful%2Fimport-tree/lists"}