-
Notifications
You must be signed in to change notification settings - Fork 150
Add support for age plugins #186
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -82,7 +82,7 @@ with lib; let | |||||
| umask u=r,g=,o= | ||||||
| test -f "${secretType.file}" || echo '[agenix] WARNING: encrypted file ${secretType.file} does not exist!' | ||||||
| test -d "$(dirname "$TMP_FILE")" || echo "[agenix] WARNING: $(dirname "$TMP_FILE") does not exist!" | ||||||
| LANG=${config.i18n.defaultLocale or "C"} ${ageBin} --decrypt "''${IDENTITIES[@]}" -o "$TMP_FILE" "${secretType.file}" | ||||||
| LANG=${config.i18n.defaultLocale or "C"} PATH=${lib.makeBinPath cfg.pluginPackages} ${ageBin} --decrypt "''${IDENTITIES[@]}" -o "$TMP_FILE" "${secretType.file}" | ||||||
| ) | ||||||
| chmod ${secretType.mode} "$TMP_FILE" | ||||||
| mv -f "$TMP_FILE" "$_truePath" | ||||||
|
|
@@ -198,6 +198,13 @@ in { | |||||
| The age executable to use. | ||||||
| ''; | ||||||
| }; | ||||||
| pluginPackages = mkOption { | ||||||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking perhaps it would be nicer to name this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree
Suggested change
|
||||||
| type = types.listOf types.package; | ||||||
| default = []; | ||||||
| description = '' | ||||||
| List of age plugins that should be available in $PATH during the build. | ||||||
| ''; | ||||||
| }; | ||||||
| secrets = mkOption { | ||||||
| type = types.attrsOf secretType; | ||||||
| default = {}; | ||||||
|
|
||||||
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.