# hercules-ci/flake-parts

❄️ Simplify Nix Flakes with the module system

Repository: https://github.com/hercules-ci/flake-parts
Canonical: https://ross.abutalabs.com/products/flake-parts
Homepage: https://flake.parts
Language: Nix
License: MIT
License Family: permissive
Topics: flakes, nix, nixos, flake-parts, nix-modules
Last push: 2026-08-24T08:19:48+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 1771, "days_push": 9, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1450, forks 77 (observed 2026-08-28T04:04:45.834617+00:00)

## What it is
flake-parts is a Nix library that lets you write Nix Flakes using the NixOS module system, providing options that mirror the standard flake schema. It serves as the minimal core of a distributed ecosystem of flake modules for splitting flake.nix into reusable, focused units.

## Use cases
- refactor a large flake.nix into separate module files
- handle per-system flake outputs without boilerplate
- share reusable flake logic as flake modules across projects
- let library users integrate my flake outputs into their flakes
- migrate an existing flake to the module system
- initialize a new project flake from a template

## When to choose
- you write Nix Flakes and want modular, composable configuration
- you want to reduce custom Nix glue code like NixOS modules do
- you maintain a library flake whose outputs others should integrate easily
- you need clean handling of multiple systems in flake outputs

## When to avoid
- you don't use Nix or Nix Flakes
- you prefer a minimal single-file flake.nix with no framework
- you need a monolithic batteries-included flake framework rather than a lightweight core

## Facets
- artifact type: library
- maturity: stable
- function: configuration-management, build-tool, developer-tools
- domain: developer-tools, infrastructure-as-code
- platform: cli
- tags: nix, nix-flakes, nix-modules, flake-parts, nixos, automation, linux, macos

## Member repositories
- hercules-ci/flake-parts (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:45.834617+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:56.208182+00:00, confidence not recorded.
  - readme: https://github.com/hercules-ci/flake-parts (fetched 2026-08-28T04:04:45.834617+00:00, sha 9c8f833e4e99)
  - homepage: https://flake.parts (fetched 2026-08-29T11:45:27.335139+00:00, sha 182c58d061d8)
  - site_page: https://flake.parts/getting-started (fetched 2026-08-29T11:45:27.344285+00:00, sha db28acba0a28)
- Data as of 2026-08-30T08:39:29.467469+00:00.
