Open dghubble opened 5 months ago
I’m pretty sure you should be able to wrap age and overwrite ageBin so that it always has the plugin in PATH. That could potentially work, at least as a workaround until there’s first party support for that in agenix
I'm able to use
agenix
(the CLI) withage
orrage
using theage-plugin-yubikey
, but when usingagenix
as NixOS module and referencing secrets,agenix
is not able to invoke theage
orrage
commands and have them detect the installed plugin.When running
sudo nixos-rebuild
,age
doesn't want to invoke theage-plugin-yubikey
. Or usingrage
, it can't find the plugin at all.Both
age
andrage
are able to detect and use the plugin when I use them directly or when I use theagenix
CLI. I've tried installing them with both environment.systemPackage and home-manage home-packages. I think this is something to do with the nixos-rebuild environment's view of the PATH, like it just can't see plugins in general. Is there a way to tell this module about these plugins that I'm missing?Related: #115