Skip to content

feat: support modular services (backend)#1189

Merged
raboof merged 1 commit intomainfrom
feat/modular-services
Apr 11, 2026
Merged

feat: support modular services (backend)#1189
raboof merged 1 commit intomainfrom
feat/modular-services

Conversation

@KiaraGrouwstra
Copy link
Copy Markdown
Collaborator

Adds modular-service discovery to flake-info: each package's nixpkgs service modules are introspected into standalone option docs tagged with type=service plus service_package/service_module metadata, and package docs gain a package_modular_services list of provided modules.

Bump backend index schema to 45 so ingest writes the new docs to fresh indices. The frontend schema version stays at 44 and continues to read the existing latest-44-* indices until a follow-up PR switches it over.

split out from #1186.

first part of #1167.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

@github-actions github-actions bot temporarily deployed to pull request April 10, 2026 20:20 Inactive
Copy link
Copy Markdown
Member

@raboof raboof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't reviewed everything in depth but trust your judgement. Two small comments, then I think this it OK to merge.

Comment thread flake-info/src/data/export.rs Outdated
Comment thread flake-info/src/data/import.rs Outdated
@KiaraGrouwstra KiaraGrouwstra force-pushed the feat/modular-services branch from dcab5c4 to 2d01667 Compare April 11, 2026 09:38
Adds modular-service discovery to flake-info: each package's nixpkgs
service modules are introspected into standalone option docs tagged
with type=service plus service_package/service_module metadata, and
package docs gain a package_modular_services list of provided modules.

Bump backend index schema to 45 so ingest writes the new docs to fresh
indices. The frontend schema version stays at 44 and continues to read
the existing latest-44-* indices until a follow-up PR switches it over.
@KiaraGrouwstra KiaraGrouwstra force-pushed the feat/modular-services branch from 2d01667 to 20ebc80 Compare April 11, 2026 09:38
@github-actions github-actions bot temporarily deployed to pull request April 11, 2026 09:39 Inactive
@raboof raboof merged commit dae57bd into main Apr 11, 2026
5 of 6 checks passed
@raboof raboof deleted the feat/modular-services branch April 11, 2026 13:12
@KiaraGrouwstra
Copy link
Copy Markdown
Collaborator Author

n.b. performance implications of the used introspection approach

@mweinelt
Copy link
Copy Markdown
Member

This broke the unstable options listing. PTAL

raboof added a commit to raboof/nixos-search that referenced this pull request Apr 13, 2026
since NixOS#1189 it seems the unstable crossed some threshold
and is causing gateway timeouts while performing bulk upload
calls. If that problem persists then let's see if splitting
the upload in smaller chunks helps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants