stylix/mk-target: rename normalizeConfig function to normalize (#2081)

Rename the normalizeConfig function to normalize to generalize the name
beyond the specific config and options module arguments, following
commit 1272e6858e ("stylix/mk-target: rename mkConfig function to
callModule").

Fixes: 6153df31ce ("stylix/mk-target: normalize options argument identically to config")
Link: https://github.com/nix-community/stylix/pull/2081
This commit is contained in:
NAHO 2025-12-10 18:15:11 +01:00 committed by GitHub
parent 54fcd2f342
commit cb6bbed75e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -268,15 +268,15 @@ let
)
);
normalizeConfig =
normalize =
config:
map (lib.fix (
self: config':
if builtins.isPath config' then self (import config') else config'
)) (lib.toList config);
normalizedConfig = normalizeConfig mkTargetConfig;
normalizedOptions = normalizeConfig options;
normalizedConfig = normalize mkTargetConfig;
normalizedOptions = normalize options;
in
{
imports =