Cheat Sheets
Common used workflow with vaultix.
Add new secret
1. Run edit:
nix run .#vaultix.app.x86_64-linux.edit -- ./where/new-to-add.age
2. Add a secret to nixos module:
secrets = {
#...
+ new-to-add.file = ./where/new-to-add.age;
};
3. Add it to git
4. Run renc:
nix run .#vaultix.app.x86_64-linux.renc
4. Add all produced stuff to git.
Modify existed secret
nix run .#vaultix.app.x86_64-linux.edit -- ./where/to-edit.age
nix run .#vaultix.app.x86_64-linux.renc
Then add changes to git.
Remove secret
secrets = {
#...
- new-to-add.file = ./where/new-to-add.age;
};
rm ./where/new-to-add.age
nix run .#vaultix.app.x86_64-linux.renc