{"id":38773769,"url":"https://github.com/m15a/flakelight-treefmt","last_synced_at":"2026-01-17T12:10:12.580Z","repository":{"id":323326395,"uuid":"1092865794","full_name":"m15a/flakelight-treefmt","owner":"m15a","description":"Integrate treefmt-nix into flakelight.","archived":false,"fork":false,"pushed_at":"2025-12-23T12:43:53.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-25T01:58:49.834Z","etag":null,"topics":["flakelight","nix-flake","treefmt"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m15a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2025-11-09T13:18:48.000Z","updated_at":"2025-12-23T12:43:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/m15a/flakelight-treefmt","commit_stats":null,"previous_names":["m15a/flakelight-treefmt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m15a/flakelight-treefmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m15a%2Fflakelight-treefmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m15a%2Fflakelight-treefmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m15a%2Fflakelight-treefmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m15a%2Fflakelight-treefmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m15a","download_url":"https://codeload.github.com/m15a/flakelight-treefmt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m15a%2Fflakelight-treefmt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["flakelight","nix-flake","treefmt"],"created_at":"2026-01-17T12:10:12.480Z","updated_at":"2026-01-17T12:10:12.556Z","avatar_url":"https://github.com/m15a.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- vim: set tw=72 spell nowrap: --\u003e\n\n# flakelight-treefmt\n\nThis module extends your [flakelight] project to replace the builtin\nformatter with one powered by [treefmt-nix].\n\n## Usage\n\nA minimal example looks like this:\n\n```nix\n{\n  inputs.flakelight-treefmt.url = \"github:m15a/flakelight-treefmt\";\n  outputs =\n    { self, flakelight-treefmt, ... }:\n    flakelight-treefmt ./. {\n      inputs.self = self;\n      treefmtConfig = {\n        programs.nixfmt.enable = true;\n      };\n    };\n}\n```\n\n\u003e [!IMPORTANT]\n\u003e You must inherit `inputs.self` so that treefmt-nix can locate and\n\u003e check the files within your project.\n\nYou can also use this module with other flakelight modules.\nAn example with [flakelight-rust] would be:\n\n```nix\n{\n  inputs = {\n    flakelight-rust.url = \"github:accelbread/flakelight-rust\";\n    flakelight-treefmt.url = \"github:m15a/flakelight-treefmt\";\n    flakelight-treefmt.inputs.flakelight.follows = \"flakelight-rust/flakelight\";\n  };\n  outputs =\n    { self, flakelight-rust, flakelight-treefmt, ... }:\n    flakelight-rust ./. {\n      inputs.self = self;\n      imports = [ flakelight-treefmt.flakelightModules.default ];\n      treefmtConfig = { pkgs, ... }: {\n        programs.rustfmt.enable = true;\n      };\n    };\n}\n```\n\n## Options\n\n### `treefmtConfig`\n\nYour configuration for treefmt-nix. It can be either an inline module\ncontaining `programs.*` etc. (like the example above) or a path to a\nconfiguration file (e.g., `./treefmt.nix`).\n\n### `treefmtWrapperInDevShell`\n\nControls whether the `treefmt` command is added to `devShell.packages`.\nThe default value is `true`.\n\n### `treefmtProgramsInDevShell`\n\nControls whether all formatters/linters configured via `treefmtConfig`\n(e.g., `nixfmt`) are added to `devShell.packages`.\nThe default value is `true`.\n\n## License\n\n[The BSD 3-clause license](LICENSE).\n\n[flakelight]: https://github.com/nix-community/flakelight\n[flakelight-rust]: https://github.com/accelbread/flakelight-rust\n[treefmt-nix]: https://github.com/numtide/treefmt-nix\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm15a%2Fflakelight-treefmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm15a%2Fflakelight-treefmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm15a%2Fflakelight-treefmt/lists"}