god help me

This commit is contained in:
do butterflies cry? 2025-12-14 21:56:10 +10:00
parent 143a63e81e
commit 9f88e9c86d

View file

@ -114,11 +114,14 @@
templateAttrs = templateNode name nodeAttrs.system;
S = nib.parse.parseStructFor templateAttrs nodeAttrs;
in
nib.types.unwrapOk (_:
abort ''
Cerulean failed to parse `cerulean.nexus.nodes.${name}`!
mergeStruct should never return `result.Err`... How are you here?!?
'')
nib.types.unwrapOk (res:
if nib.types.isRes res
then
abort ''
Cerulean failed to parse `cerulean.nexus.nodes.${name}`!
mergeStruct should never return `result.Err`... How are you here?!?
''
else abort "huh wtf ${builtins.typeOf res} +AND-THEN+ ${builtins.toJSON res}")
S;
# mapNodes = f: builtins.mapAttrs f (builtins.mapAttrs parseNode config.nexus.nodes);