-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for age plugins #186
base: main
Are you sure you want to change the base?
Conversation
@@ -187,6 +187,13 @@ in { | |||
The age executable to use. | |||
''; | |||
}; | |||
pluginPackages = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking perhaps it would be nicer to name this path
, similar to systemd.services.<name>.path
. On the other hand, the name pluginPackages
communicates more intent and I believe is more discoverable. Thoughts? :)
Have a look at this old PR #134 in which I tried the exact same thing just to arrive at the conclusion that this is probably not what I wanted. |
This is only related to using this with
|
So, those efforts have died and this still seems a simple and viable approach. Perhaps time to re-open and reconsider? |
@koenw This is the exact same way I implemented plugin support in my test config! Even works with ragenix (even though that one is actually suppose to have plugin support; it looks as if the plugins aren't being put in the path from what I saw). When I manually overwritten the ageBin and appended the plugins to the PATH, it made it function properly). However, I do wish there was a similar way of implementing this for the HomeManager module; |
First of all thanks for the software :)
When
nixos-rebuild
-ing my system flake with secrets encrypted to/with my Yubikey, (r)age gave the error that it was unable to find the pluginage-plugin-yubikey
in it's $PATH even though I was able to run it myself. This is because any installed plugins would be unavailable in the build environment.I have added an option to the agenix module to specify the age plugin packages that should be available in the build environment. This fixed the error for me and I am now able to successfully
nixos-rebuild
with secrets decrypted from my Yubikey.I'm still finding my way with Nix so please let me know if you need any changes (or if this is totally not the right approach at all).
Thanks!