-
Notifications
You must be signed in to change notification settings - Fork 2
feat(secrets): Migration from agenix to sops-nix + secrets in private repo #5
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
Conversation
The beginning of migration from agenix to sops-nix
Evaluation secrets for now, will figure out what to do with them later
I can get sops the package itself to work.. but sops-nix actually uses a custom Go package for installing secrets 😬 So this may actually be impossible to get working with sops (at least until I can figure out a different way of bridging it or until sops-nix itself gets support) |
Finally got it working but the devshell fails to initialize with this error
Also I need to remember to change all of the path links to the secrets to |
Another horrific discovery, the PR Im basing off of doesn't have the needed changes on the home-manager module 😭 |
I'm moving on to implementing agenix-rekey in addition to moving the secrets to nix-secrets |
I decided to come back to this. I actually got the age support added into the home-manager (and even nix-darwin) modules of sops-nix! |
It PROPERLY functions thanks to @nazarewk and @brianmcgee! Also I need to change the references of the secret paths to nix-secrets
Got the main chunks of the sops-nix migration done, so now just carrying over the other smaller changes from the second PR |
- Removed the old git commit checks since they no longer apply!
It was really really out of date, and I still hadn't fully finished working on it!
Think I'm just about satisfied with the changes, will go ahead and merge ❤️ |
Oops I merged it wrong 😭 |
Going back to sops-nix since it finally has yubikey support via age plugins! Also in the process, I plan on moving all secrets from this repo into a private one (based EmergentMind's nix-secrets template).
It shouldn't be that difficult but I anticipate a few issues:
If sops-nix actually properly supports the age pluginsI took the changes that @brianmcgee made in his initial PR and updated the PR to the latest version of sops-nix aswell as variable conflict bugs. These modifications have been incorporated into the new PRCan I make sure nix-secrets gets decrypted via git-crypt before evaluation as the nix-secrets flake is cloned? This is necessary for the evaluation secretsThis is impossible from what I was told on the NixOS Discord serverA few things I learned between #6 and this PR
Goal Checklist:
Stretch Goals: