diff --git a/doc/overriding-age-binary.md b/doc/overriding-age-binary.md index 34ae232..2d3a5c7 100644 --- a/doc/overriding-age-binary.md +++ b/doc/overriding-age-binary.md @@ -4,9 +4,17 @@ The agenix CLI uses `age` by default as its age implemenation, you can use the `rage` implementation with Flakes like this: ```nix -{pkgs,agenix,...}:{ +{ + pkgs, + lib, + agenix, + ... +}: +{ environment.systemPackages = [ - (agenix.packages.x86_64-linux.default.override { ageBin = "${pkgs.rage}/bin/rage"; }) + (agenix.packages.x86_64-linux.default.override { ageBin = lib.getExe pkgs.rage; }) ]; } ``` + +Please note that the behavior of alternative implementations may not match that required for agenix to function, and the agenix team does not plan to provide support for bugs encountered when using agenix with nondefault implementations.