1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 04:11:07 +01:00

remove rec

This commit is contained in:
2025-12-25 08:33:18 +01:00
parent 3bf70f8956
commit 07756a0660
22 changed files with 121 additions and 170 deletions

View File

@@ -9,8 +9,8 @@
config = args.config or {};
lib =
args.lib
// rec {
lib.recursiveUpdate args.lib
(let
attrPaths = let
recurse = path: value:
if builtins.isAttrs value
@@ -18,6 +18,8 @@
else [(lib.nameValuePair path value)];
in
attrs: lib.flatten (recurse [] attrs);
in {
inherit attrPaths;
attrPathsSep = sep: attrs: lib.listToAttrs (map (x: x // {name = lib.concatStringsSep sep x.name;}) (attrPaths attrs));
@@ -33,7 +35,7 @@
setCommand = name: value: "/set ${name} \"${toWeechatValue value}\"";
filterAddreplace = name: filter: "/filter addreplace ${name} ${filter.buffer} ${toWeechatValue filter.tags} ${filter.regex}";
};
});
cfg = eval.config;