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

Docs don't mention that secrets.nix has to be in the current working directory #316

Open
hobbit44 opened this issue Mar 22, 2025 · 1 comment

Comments

@hobbit44
Copy link

I'm just getting started using this and following the instructions it says:

Make a directory to store secrets and secrets.nix file for listing secrets and their public keys

So i created a secrets directory and put my secrets.nix in there. (Also using this as a reference.

On first run i get the following:

       error: path '/home/[user]/source/dotfiles/secrets.nix' does not exist

I realised what was wrong and cded into the secrets dir and it ran correctly but it might be worth mentioning in the install doc for new users that this is needed.

For bonus points i noticed there is an environment variable called RULES to specify the file location but there isn't a command line argument like there is for the other parameters. It would be great to have this too.

@martijnboers
Copy link

It would be great if there was more flexibility around this. Currently using the git submodules 'hack' from #266 in order to hide my age encrypted files in a public repo.

Together with what's being mentioned in FiloSottile/age#578 making the secrets directory configurable would be a great addition.

This would also help with reproducibility as one of the upsides of using git with my secrets is that when I checkout older commits, my secrets are also exactly the way they were in that moment.

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

2 participants