rename.nix: Don't use the extraConfigs feature
This commit is contained in:
parent
2cc37c17d9
commit
f4dadc5df8
@ -32,7 +32,6 @@ let
|
|||||||
zipAttrsWith (n: v:
|
zipAttrsWith (n: v:
|
||||||
if tail v != [] then
|
if tail v != [] then
|
||||||
if n == "_type" then (head v)
|
if n == "_type" then (head v)
|
||||||
else if n == "extraConfigs" then concatLists v
|
|
||||||
else if n == "warnings" then concatLists v
|
else if n == "warnings" then concatLists v
|
||||||
else if n == "description" || n == "apply" then
|
else if n == "description" || n == "apply" then
|
||||||
abort "Cannot rename an option to multiple options."
|
abort "Cannot rename an option to multiple options."
|
||||||
@ -55,12 +54,7 @@ let
|
|||||||
inherit visible;
|
inherit visible;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
{ options = setTo (mkOption {
|
{ config = setTo (mkIf (fromOf options).isDefined (define (mkMerge (fromOf options).definitions)));
|
||||||
extraConfigs =
|
|
||||||
let externalDefs = (fromOf options).definitions; in
|
|
||||||
if externalDefs == [] then []
|
|
||||||
else map (def: def.value) (define externalDefs);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user