From 2ab870db8c65f701a3cd3ffbc1e1a4dbfdc3b72d Mon Sep 17 00:00:00 2001 From: m3tam3re
Date: Sat, 13 Jun 2026 09:25:40 +0200 Subject: [PATCH] feat: re-export Hermes skills renderer --- flake.lock | 15 ++++++--------- flake.nix | 12 +++--------- lib/default.nix | 15 +++++++++++++-- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/flake.lock b/flake.lock index ad73f2f..5fc8fdf 100644 --- a/flake.lock +++ b/flake.lock @@ -28,17 +28,14 @@ ] }, "locked": { - "lastModified": 1780736323, - "narHash": "sha256-b4CfjbWTT+5Z0XBI2/W2DnybwkYVwLxghCwXVmw9+Iw=", - "ref": "refs/heads/master", - "rev": "b0c832c9e02d8b3d8ad091f022c859382a037afd", - "revCount": 26, - "type": "git", - "url": "ssh://gitea@code.m3ta.dev/m3tam3re/agent-lib" + "lastModified": 1781334874, + "narHash": "sha256-rGXLTREh0mvgSuYMuYf1ciEJ+ez+DyK/c7NfDgFQWEY=", + "path": "/home/m3tam3re/p/NIX/agent-lib", + "type": "path" }, "original": { - "type": "git", - "url": "ssh://gitea@code.m3ta.dev/m3tam3re/agent-lib" + "path": "/home/m3tam3re/p/NIX/agent-lib", + "type": "path" } }, "agents": { diff --git a/flake.nix b/flake.nix index 2f0068e..3187b83 100644 --- a/flake.nix +++ b/flake.nix @@ -22,8 +22,8 @@ }; agent-lib = { - # url = "path:/home/m3tam3re/p/NIX/agent-lib"; - url = "git+ssh://gitea@code.m3ta.dev/m3tam3re/agent-lib"; + url = "path:/home/m3tam3re/p/NIX/agent-lib"; + # url = "git+ssh://gitea@code.m3ta.dev/m3tam3re/agent-lib"; inputs.nixpkgs.follows = "nixpkgs"; }; @@ -47,13 +47,7 @@ nur.url = "github:nix-community/NUR"; }; - outputs = { - self, - nixpkgs, - ... - } @ inputs: let - lib = nixpkgs.lib; - in { + outputs = {self, ...} @ inputs: { # Home-Manager modules — import in nixos-config via: # imports = [ inputs.m3ta-home.homeManagerModules.default ]; homeManagerModules = import ./modules { diff --git a/lib/default.nix b/lib/default.nix index 91de253..af02836 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -1,5 +1,16 @@ # lib/default.nix — Entry point for m3ta-home library functions. # # Called by flake.nix: import ./lib { inherit inputs; selfPath = self.outPath; } -# Re-exports mkHome and future library functions. -{inputs, selfPath}: import ./mkHome.nix {inherit inputs selfPath;} +# Re-exports mkHome and focused helpers for consumers that should not depend on +# m3ta-home's implementation inputs directly. +{ + inputs, + selfPath, +}: let + mkHomeLib = import ./mkHome.nix {inherit inputs selfPath;}; +in + mkHomeLib + // { + mkHermesSkillsDir = {system, ...} @ args: + inputs.agent-lib.lib.${system}.mkHermesSkillsDir (builtins.removeAttrs args ["system"]); + }