10 Commits

Author SHA1 Message Date
cinereal
aca42ac26a lib/services: make the portable service module self-contained
`lib/services/service.nix` reached outside of `lib/` for two class-agnostic
module fragments: `modules/generic/meta-maintainers.nix` and
`nixos/modules/misc/assertions.nix`. That prevents `lib/` from being used as a
standalone tree, which is exactly how `nixos/modules/misc/documentation.nix`
consumes it when building `lazy-options.json`.

Host both fragments in `lib/` and expose them as `lib.genericModules`, so that
consumers outside `lib/` reach them through the `lib` module argument instead of
a filesystem-relative import. The old locations become re-exports, keeping
`modules/generic/meta-maintainers.nix` importable as documented in
`modules/README.md` and `nixos/modules/misc/assertions.nix` usable from
`nixos/modules/module-list.nix`.

`lib` now shares the `filteredModules` tree in `documentation.nix`, so that
`declarations` pointing into it are stripped like the ones pointing into
`modules` and `nixos`, rather than leaving a disallowed store path reference in
`lazy-options.json`.

Assisted-by: Claude:claude-opus-5
2026-08-30 21:18:31 +02:00
Silvan Mosberger
b513ab8192 Reapply "ci: module maintainer review requests; nixos/modules: init meta.teams"
This reverts commit 2cc2e0225f.
2026-03-13 16:53:28 +01:00
Silvan Mosberger
2cc2e0225f Revert "ci: module maintainer review requests; nixos/modules: init meta.teams" 2026-03-06 08:41:24 +01:00
Silvan Mosberger
5991eab94f modules/generic/meta-maintainers.nix: Introduce meta.teams
And trigger review requests for it
2026-03-02 10:59:07 +01:00
Silvan Mosberger
3dc5545d51 modules/generic/meta-maintainers.nix: Check validity of meta.maintainers
And fix a case where it wasn't valid
2026-03-02 10:58:09 +01:00
Silvan Mosberger
516a14cd33 modules/generic/meta-maintainers.nix: Simplify
There was no need for it to be this complicated.

Notably the maintainer check was never used anyways, because only its
merge function was used, which doesn't do a check

There is a minor functional change with this commit, which is that even
if explicitly `meta.maintainers = []`, that module will be in the result
when it wasn't before. I deem this insignificant.
2026-03-02 10:55:34 +01:00
Dyego Aurélio
28096cc5e3 treewide: apply nixfmt 1.2.0 2026-01-22 18:37:56 -03:00
Wolfgang Walther
0520de5243 maintainers: drop eelco
Has not reacted to maintainer pings since July 2025. Dropping according
to maintainer guidelines.
2026-01-10 22:50:43 +01:00
Matt Sturgeon
79748defd7 modules/meta-maintainers: Refactor maintainer type merge function
Easily tested now.
Thank you Matt for this suggestion!

Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
2025-08-10 13:37:10 +02:00
Robert Hensing
0c156a7144 modules/generic/meta-maintainers: init
This factors out `meta.maintainers` from NixOS `misc/meta.nix` for use in arbitrary
Module System applications.

It is useful beyond NixOS and not coupled to it, although it is currently coupled to Nixpkgs'
`lib.maintainers`.
That restriction could be lifted optionally if there's future demand.
2025-08-06 14:58:50 +02:00