Skip to content
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

Have to be in same directory as $RULES to rekey #149

Open
n8henrie opened this issue Feb 16, 2023 · 0 comments
Open

Have to be in same directory as $RULES to rekey #149

n8henrie opened this issue Feb 16, 2023 · 0 comments

Comments

@n8henrie
Copy link
Collaborator

With the current implementation of parsing the secrets from secrets.nix, some functions of the CLI tool need to be run from secretsDir (because FILES doesn't get the full path, at least this is part of the problem).

FILES=$( (@nixInstantiate@ --eval -E "(let rules = import $RULES; in builtins.concatStringsSep \"\n\" (builtins.attrNames rules))" | @sedBin@ 's/"//g' | @sedBin@ 's/\\n/\n/g') || exit 1)

Seems like this should at least be documented -- and perhaps a $(dirname $RULES) could pass the full path to edit and make it work from other directories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant