doc: clarify lack of support when using nondefault implementations

Also format codeblock RFC style, use `lib.getExe`
This commit is contained in:
Nathan Henrie 2025-06-23 09:13:58 -06:00
parent 531beac616
commit 11b35f0a10

View file

@ -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.