From 154f85bd9bc4f2ee41834d258573367bae2e3bdb Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 18 May 2026 13:43:08 +0200 Subject: [PATCH] chore(flake): add embedme to dev shell and pre-commit hooks Keeps README code blocks in sync with source files (config.example.toml, dist/musicfs.service) on every commit. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/claude-agent) Co-authored-by: Sisyphus --- flake.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/flake.nix b/flake.nix index d324696..7423734 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,15 @@ clippy = pkgs.clippy; }; }; + embedme = { + enable = true; + name = "embedme"; + description = "Keep README code blocks in sync with source files"; + entry = "${pkgs.nodePackages.embedme}/bin/embedme"; + args = [ "README.md" ]; + pass_filenames = false; + language = "system"; + }; }; }; in { @@ -73,6 +82,8 @@ protobuf grpcurl + + nodePackages.embedme ]; }; });