Link: https://github.com/nix-community/stylix/pull/2041 Link: https://github.com/nix-community/stylix/pull/1976#discussion_r2539186937 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
26 lines
562 B
Nix
26 lines
562 B
Nix
{ pkgs, lib }:
|
|
builtins.mapAttrs
|
|
(
|
|
_: value:
|
|
if builtins.isFunction value then
|
|
(value {
|
|
inherit pkgs;
|
|
lib = lib.extend (
|
|
_: prev: {
|
|
maintainers = lib.attrsets.unionOfDisjoint prev.maintainers (
|
|
import ./maintainers.nix
|
|
);
|
|
}
|
|
);
|
|
})
|
|
else
|
|
value
|
|
)
|
|
(
|
|
lib.concatMapAttrs (
|
|
target: kind:
|
|
lib.optionalAttrs (kind == "directory") {
|
|
${target} = import ../modules/${target}/meta.nix;
|
|
}
|
|
) (builtins.readDir ../modules)
|
|
)
|