diff --git a/flake.nix b/flake.nix index b8c59d2..4c73bab 100644 --- a/flake.nix +++ b/flake.nix @@ -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);