god help me
This commit is contained in:
parent
143a63e81e
commit
9f88e9c86d
1 changed files with 8 additions and 5 deletions
13
flake.nix
13
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue