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 commit1272e6858e("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:
parent
54fcd2f342
commit
cb6bbed75e
1 changed files with 3 additions and 3 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue