From 27e83ddb47c6bbf5f18aa129a8012bc2a2753b9f Mon Sep 17 00:00:00 2001 From: _cry64 Date: Sun, 14 Dec 2025 22:50:40 +1000 Subject: [PATCH] remove unnecessary unwrapRes call --- flake.nix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 4c73bab..23557e1 100644 --- a/flake.nix +++ b/flake.nix @@ -112,17 +112,8 @@ '' else let templateAttrs = templateNode name nodeAttrs.system; - S = nib.parse.parseStructFor templateAttrs nodeAttrs; in - 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; + nib.parse.parseStructFor templateAttrs nodeAttrs; # mapNodes = f: builtins.mapAttrs f (builtins.mapAttrs parseNode config.nexus.nodes); mapNodes = f: